From c12635d76f0f35f0b635edbda38b31dfd83d2b1f Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Mon, 14 Oct 2024 11:33:07 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 52b066b1..0e8b3d5e 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -1902,7 +1902,7 @@ exports.motorAction = async (req, reply) => { } }, 60000); // Check every minute - + } } else if (req.body.threshold_type === "litres") { console.log("entered litres") const receiver_tank_info7 = await Tank.findOne({ customerId, tankName: req.body.to, tankLocation: req.body.to_type.toLowerCase() }); @@ -2002,7 +2002,6 @@ exports.motorAction = async (req, reply) => { }, 20000); } } - // Respond with success message reply.code(200).send({ message: `Motor ${action === "start" ? "started" : "stopped"} successfully.` });