diff --git a/app/controllers/cibil.controller.js b/app/controllers/cibil.controller.js index 536e065..e7e3b59 100644 --- a/app/controllers/cibil.controller.js +++ b/app/controllers/cibil.controller.js @@ -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