suseendhiran
This commit is contained in:
parent
6aceef8b87
commit
5208f4ff9b
@ -65,7 +65,7 @@ exports.PullCreditPdData = async (req, res) => {
|
||||
Object.assign(obj , {pd_id : PDID.dataValues.pd_id} );
|
||||
var index = table_name[0].table_name;
|
||||
var tableName = arr[index];
|
||||
tableName.create(obj);logMsg.info(OverallKey+" insert success ,PdId= "+PDID.dataValues.pd_id);
|
||||
await tableName.create(obj);logMsg.info(OverallKey+" insert success ,PdId= "+PDID.dataValues.pd_id);
|
||||
}
|
||||
}
|
||||
res.send({'status':200,'message':"success"});
|
||||
@ -248,11 +248,11 @@ exports.GetCreditPdData = async (req, res) =>
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// applicantDetails = await Credit_PdHelper.MainApplicantDetails(req.query.losid);
|
||||
// MainApplicantDetails = JSON.parse(applicantDetails);
|
||||
// if(MainApplicantDetails.status == 200)
|
||||
// {
|
||||
// CreditGeneralInformation.findAll({ where : { pd_id :409,is_active : 1},
|
||||
// // applicantDetails = await Credit_PdHelper.MainApplicantDetails(req.query.losid);
|
||||
// // MainApplicantDetails = JSON.parse(applicantDetails);
|
||||
// // if(MainApplicantDetails.status == 200)
|
||||
// // {
|
||||
// CreditGeneralInformation.findAll({ where : { pd_id :410,is_active : 1},
|
||||
// include : [
|
||||
// {model: CreditAddressDetail }, {model: CreditFuturePlans },
|
||||
// {model : CreditBorrowerAndGuarantorDetails },
|
||||
@ -280,11 +280,11 @@ exports.GetCreditPdData = async (req, res) =>
|
||||
// }
|
||||
// })
|
||||
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// res.send({'status':404,'message':"failed",'data':"No data"});
|
||||
// }
|
||||
// // }
|
||||
// // else
|
||||
// // {
|
||||
// // res.send({'status':404,'message':"failed",'data':"No data"});
|
||||
// // }
|
||||
|
||||
// } catch(err) {
|
||||
// res.status(500).send({'status':404,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user