loanApiIntegration:GWM

This commit is contained in:
sriramv 2023-07-27 17:44:35 +05:30
parent 389ebca32c
commit ccacbeb2bf

View File

@ -760,7 +760,7 @@ exports.LandingPageDetailsList = async (req, res) =>
if(PanListValue.entity_type == "Individual"){ CibilType = 1; }else if(PanListValue.entity_type == "Non-Individual"){CibilType = 2;}
await Object.assign(PanListValue, {cibil_type:CibilType})
BorrowerDetailData = await InBorrowerDetail.findOne({where:{losid:PanListValue.losid , PAN:PanListValue.PAN ,cibil_type:CibilType}});
BorrowerDetailData = await InBorrowerDetail.findOne({where:{losid:PanListValue.losid , PAN:PanListValue.pan_no ,cibil_type:CibilType}});
if(BorrowerDetailData)
{
//skip data insertion for this case