From dc65e33af5fba3e505506684d7a913448f73dd6e Mon Sep 17 00:00:00 2001 From: varun Date: Thu, 16 Mar 2023 05:38:41 -0400 Subject: [PATCH] start and stop --- src/controllers/tanksController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index d11dde9b..9291627f 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -438,7 +438,7 @@ exports.motorAction = async (req, reply) => { } else if (action === "stop") { - // stop_time = new Date().toLocaleString('en-US', {timeZone: 'Asia/Kolkata'}) + stop_time = new Date().toLocaleString('en-US', {timeZone: 'Asia/Kolkata'}) // console.log(stop_time) // clearInterval(intervalId); await Tank.findOneAndUpdate({customerId, tankName: receiver_tank,tankLocation:(req.body.to_type).toLowerCase()}, { $set: { motor_status: "0" } });