master
Bhaskar 12 months ago
parent 521cb58d54
commit c12635d76f

@ -1902,7 +1902,7 @@ exports.motorAction = async (req, reply) => {
} }
}, 60000); // Check every minute }, 60000); // Check every minute
}
} else if (req.body.threshold_type === "litres") { } else if (req.body.threshold_type === "litres") {
console.log("entered litres") console.log("entered litres")
const receiver_tank_info7 = await Tank.findOne({ customerId, tankName: req.body.to, tankLocation: req.body.to_type.toLowerCase() }); 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); }, 20000);
} }
} }
// Respond with success message // Respond with success message
reply.code(200).send({ message: `Motor ${action === "start" ? "started" : "stopped"} successfully.` }); reply.code(200).send({ message: `Motor ${action === "start" ? "started" : "stopped"} successfully.` });

Loading…
Cancel
Save