|
|
@ -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") |
|
|
|