susee , loanDetail api
This commit is contained in:
parent
60d252a110
commit
99b8c601a6
@ -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" });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user