From 99b8c601a600729027554112854e6f5e502bd5c0 Mon Sep 17 00:00:00 2001 From: suseendhiran17 <58357088+suseendhiran17@users.noreply.github.com> Date: Thu, 30 Jun 2022 13:50:01 +0530 Subject: [PATCH] susee , loanDetail api --- app/controllers/entity.applicant.controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" });