From c8768e3db645798dd0c5b28a60c5f96d92d76070 Mon Sep 17 00:00:00 2001 From: varun Date: Thu, 16 Mar 2023 04:53:19 -0400 Subject: [PATCH] start and stop --- src/controllers/tanksController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 7764fd8a..8189046e 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -265,9 +265,9 @@ exports.motorAction = async (req, reply) => { if(action === "start"){ start_time = new Date().toLocaleString('en-US', {timeZone: 'Asia/Kolkata'}) - supplier_tank = req.body.from - supplier_tank_type = (req.body.from_type).toLowerCase() - receiver_type = (req.body.to_type).toLowerCase() + const supplier_tank = req.body.from + const supplier_tank_type = (req.body.from_type).toLowerCase() + const receiver_type = (req.body.to_type).toLowerCase() console.log(supplier_tank)