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.` });