diff --git a/app/controllers/entity.applicant.controller.js b/app/controllers/entity.applicant.controller.js index aea13b2..cc9628f 100644 --- a/app/controllers/entity.applicant.controller.js +++ b/app/controllers/entity.applicant.controller.js @@ -953,7 +953,9 @@ exports.updateLoanDetail = async (req, res) => delete req.body.id; delete req.body.updatedby; // update old value is_active = 0 where requested id - await LoanDetail.update(req.body,{ where: { id: id }}) + await LoanDetail.update(req.body,{ where: { id: id }}).then(data=>{ + res.send({'status':200,'message':"success",'data':data}) + }) .catch(err => { res.send({'status':404, message: err.message || "Some error occurred while retrieving statements." ,'data': "No data" });