From a3837246a7de01fff47bfe6f252584287aaf8b4a Mon Sep 17 00:00:00 2001 From: sriramv Date: Thu, 6 Apr 2023 17:39:23 +0530 Subject: [PATCH] location&applicant_id:GWM --- app/controllers/creditpd.controller.js | 2 +- app/models/CreditGeneralInformation.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/creditpd.controller.js b/app/controllers/creditpd.controller.js index 81e3e67..95330bf 100644 --- a/app/controllers/creditpd.controller.js +++ b/app/controllers/creditpd.controller.js @@ -62,7 +62,7 @@ exports.PullCreditPdData = async (req, res) => { } console.log(completed_date); // create creditGeneralInormationData - Object.assign(obj, { ref_no: tempData.pdid , product : tempData.product , case_no : tempData.caseno , credit_pd_type : req.body.credit_pd_type , completed_date : completed_date}); + Object.assign(obj, { ref_no: tempData.pdid , product : tempData.product , case_no : tempData.caseno , credit_pd_type : req.body.credit_pd_type , completed_date : completed_date , applicant_id :req.body.lender_applicant_id , location : req.body.start_location}); await CreditGeneralInformation.create(obj) .then((successData)=>{logMsg.info("GeneralInformation insert success ,PdId= "+successData.dataValues.pd_id);}) diff --git a/app/models/CreditGeneralInformation.js b/app/models/CreditGeneralInformation.js index c3e26c3..0828bd6 100644 --- a/app/models/CreditGeneralInformation.js +++ b/app/models/CreditGeneralInformation.js @@ -15,6 +15,7 @@ module.exports = (sequelize, DataTypes) => { loan_amount: { type: DataTypes.INTEGER }, product: { type: DataTypes.STRING }, location: { type: DataTypes.STRING }, + applicant_id: { type: DataTypes.STRING }, ref_no: { type: DataTypes.INTEGER }, case_no: { type: DataTypes.STRING }, officer_id: { type: DataTypes.INTEGER },