From ccacbeb2bf296bebadeb064f17a2d7defd74754e Mon Sep 17 00:00:00 2001 From: sriramv Date: Thu, 27 Jul 2023 17:44:35 +0530 Subject: [PATCH] loanApiIntegration:GWM --- app/controllers/cibil.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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