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" } });