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)