From 3c333470750b6def46af90ef5de667e31ad4334b Mon Sep 17 00:00:00 2001 From: suseendhiran17 <58357088+suseendhiran17@users.noreply.github.com> Date: Tue, 12 Jul 2022 12:49:10 +0530 Subject: [PATCH] suseendhiran , change field name in pan detail api --- app/controllers/entity.applicant.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/entity.applicant.controller.js b/app/controllers/entity.applicant.controller.js index 1c99ee5..f9bce50 100644 --- a/app/controllers/entity.applicant.controller.js +++ b/app/controllers/entity.applicant.controller.js @@ -1099,8 +1099,8 @@ exports.ApplicantPanList = async (req, res) => { LoanDetail.findAll({ where : { losid : req.query.losid , is_active : 1}}).then(data => { - sequelize.query(`SELECT loan_details.losid , applicants.pan_no AS pan , applicants.entity_type FROM loan_details JOIN applicants ON applicants.loan_no_id = '${data[0].id}' and applicants.is_active = 1 where loan_details.id = '${data[0].id}' and loan_details.is_active = 1; \ - SELECT loan_details.losid , entity_details.pan_no As pan , entity_details.entity_type FROM loan_details JOIN entity_details ON entity_details.loan_no_id = '${data[0].id}' and entity_details.is_active = 1 where loan_details.id = '${data[0].id}' and loan_details.is_active = 1`) + sequelize.query(`SELECT loan_details.losid , applicants.pan_no AS PAN , applicants.entity_type FROM loan_details JOIN applicants ON applicants.loan_no_id = '${data[0].id}' and applicants.is_active = 1 where loan_details.id = '${data[0].id}' and loan_details.is_active = 1; \ + SELECT loan_details.losid , entity_details.pan_no As PAN , entity_details.entity_type FROM loan_details JOIN entity_details ON entity_details.loan_no_id = '${data[0].id}' and entity_details.is_active = 1 where loan_details.id = '${data[0].id}' and loan_details.is_active = 1`) .then(data=> {