start and stop

master
varun 3 years ago
parent 203ea714ce
commit dc65e33af5

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

Loading…
Cancel
Save