diff --git a/app/controllers/creditpd.controller.js b/app/controllers/creditpd.controller.js index d70ef9a..890d361 100644 --- a/app/controllers/creditpd.controller.js +++ b/app/controllers/creditpd.controller.js @@ -18,7 +18,7 @@ exports.PullCreditPdData = async (req, res) => { CreditGeneralInformationDataExist = await CreditGeneralInformation.findOne({ where : { ref_no : req.body.pdid ,product:req.body.product,case_no :req.body.caseno, is_active : 1 }}); if(CreditGeneralInformationDataExist) { - CreditGeneralInformation.destroy({ where : { pd_id : CreditGeneralInformationDataExist.dataValues.pd_id}, + await CreditGeneralInformation.destroy({ where : { pd_id : CreditGeneralInformationDataExist.dataValues.pd_id}, include : [ {model: CreditAddressDetail }, {model: CreditFuturePlans }, {model : CreditBorrowerAndGuarantorDetails },