From 028bc768c0fc70ca269edd77bc3effe5c1108b07 Mon Sep 17 00:00:00 2001 From: sriramv Date: Sat, 25 Jun 2022 10:24:46 +0530 Subject: [PATCH] GWM --- app/controllers/financial.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/financial.controller.js b/app/controllers/financial.controller.js index 0461e55..5570e2c 100644 --- a/app/controllers/financial.controller.js +++ b/app/controllers/financial.controller.js @@ -887,8 +887,8 @@ exports.checkProbeStatus = (req, res) => { exports.deActivateFinancialsYear = async (req, res) => { try { - await Entityfinyear.upadte({is_active : 0},{where : {losid: req.query.losid , entityid : req.query.entityid,FY: req.query.FY }}); - await Financials.upadte({is_active : 0},{where : { entity_id : req.query.entityid,fy: req.query.FY }}) + await Entityfinyear.update({is_active : 0},{where : {losid: req.query.losid , entityid : req.query.entityid,FY: req.query.FY }}); + await Financials.update({is_active : 0},{where : { entity_id : req.query.entityid,fy: req.query.FY }}) res.send({'status':200,"message": "success." ,'data': "No data"}); } catch(err) { res.send({'status':404,message: err.message || "Some error occurred while inserting statements." ,'data': "No data"});