diff --git a/controller/getAllInvestor/query.js b/controller/getAllInvestor/query.js index 31685d2..912be0b 100644 --- a/controller/getAllInvestor/query.js +++ b/controller/getAllInvestor/query.js @@ -2,7 +2,7 @@ const db = require("../../utils/db_config"); const { errorLogStatus } = require("../Errorlog"); async function getInvestorIdQuery(id) { try { - let query = `select * from dbo.P2P_Liquiloans_Investors where investor_id= '${id}'`; + let query = `select * from dbo.P2P_BI_Liquiloans_Investors where investor_id= '${id}'`; return await db.sequelize.query(query, { type: db.sequelize.QueryTypes.SELECT }); } catch (error) { // console.log("isInvestorPresent", err.message) @@ -13,7 +13,7 @@ async function getInvestorIdQuery(id) { async function getInvestorPan(pan) { try { - let query = `Select CLIENT_CODE from ClientMasterMFD Where CLIENT_PAN IN ('${pan}') and status = 1` + let query = `Select CLIENT_CODE from ClientMasterMFD Where CLIENT_PAN IN ('${pan}') and status = 1` return await db.sequelize.query(query, { type: db.sequelize.QueryTypes.SELECT }); } catch (error) { errorLogStatus(error, "Error_getClientCode") diff --git a/controller/getInvestmentSummary/query.js b/controller/getInvestmentSummary/query.js index 9e15ec2..57ab63f 100644 --- a/controller/getInvestmentSummary/query.js +++ b/controller/getInvestmentSummary/query.js @@ -3,7 +3,7 @@ const { errorLogStatus } = require("../Errorlog"); async function getInvSummaryIdQuery(id) { try { - let query = `select * from dbo.P2P_Liquiloans_Inv_Summarys where request_id= '${id}'`; + let query = `select * from dbo.P2P_BI_Liquiloans_Inv_Summarys where request_id= '${id}'`; return await db.sequelize.query(query, { type: db.sequelize.QueryTypes.SELECT }); } catch (error) { errorLogStatus(error, "nodeJs_liquiloan_isRequestIdPresent") diff --git a/controller/getTransactionById/query.js b/controller/getTransactionById/query.js index 6a77e66..3354122 100644 --- a/controller/getTransactionById/query.js +++ b/controller/getTransactionById/query.js @@ -3,7 +3,7 @@ const { errorLogStatus } = require("../Errorlog"); async function getInvTransIdQuery(id) { try { - let query = `select * from dbo.P2P_Liquiloans_Inv_Transactions where request_id= '${id}'`; + let query = `select * from dbo.P2P_BI_Liquiloans_Inv_Transactions where request_id= '${id}'`; return await db.sequelize.query(query, { type: db.sequelize.QueryTypes.SELECT }); } catch (error) { errorLogStatus(error, "nodeJs_liquiloan_handleRecordPresent") diff --git a/model/investorSummary.js b/model/investorSummary.js index 9105477..83c6d97 100644 --- a/model/investorSummary.js +++ b/model/investorSummary.js @@ -1,5 +1,5 @@ module.exports = function (sequelize, DataTypes) { - const getInvestorSummary = sequelize.define('P2P_Liquiloans_Inv_Summarys', { + const getInvestorSummary = sequelize.define('P2P_BI_Liquiloans_Inv_Summarys', { transaction_id: { type: DataTypes.INTEGER, allowNull: false, unique: true }, investor_id: { type: DataTypes.INTEGER, allowNull: true }, diff --git a/model/liquiloansInvestors.js b/model/liquiloansInvestors.js index eab61d8..f6218cc 100644 --- a/model/liquiloansInvestors.js +++ b/model/liquiloansInvestors.js @@ -1,5 +1,5 @@ module.exports = function (sequelize, DataTypes) { - const LiquiloansInvestorsTbl = sequelize.define('P2P_Liquiloans_Investors', { + const LiquiloansInvestorsTbl = sequelize.define('P2P_BI_Liquiloans_Investors', { investor_id: { type: DataTypes.INTEGER, allowNull: false, unique: true }, name: { type: DataTypes.STRING, allowNull: true }, diff --git a/model/transactionById.js b/model/transactionById.js index 0c75bef..8a40835 100644 --- a/model/transactionById.js +++ b/model/transactionById.js @@ -1,7 +1,7 @@ // P2P_Liquiloans_Inv_Transaction module.exports = function (sequelize, DataTypes) { - const liquiloansTransaction = sequelize.define('P2P_Liquiloans_Inv_Transactions', { + const liquiloansTransaction = sequelize.define('P2P_BI_Liquiloans_Inv_Transactions', { request_id: { type: DataTypes.INTEGER, allowNull: false, unique: true }, investor_id: { type: DataTypes.INTEGER, allowNull: true },