master^2
Varun 8 months ago
parent a56de05de1
commit 2e613157fb

@ -2936,6 +2936,7 @@ exports.motorAction = async (req, reply) => {
const thresholdTime = new Date(new Date().getTime() + req.body.manual_threshold_time * 60000); const thresholdTime = new Date(new Date().getTime() + req.body.manual_threshold_time * 60000);
console.log("New Threshold Time:", thresholdTime); console.log("New Threshold Time:", thresholdTime);
console.log("Current Time:", new Date()); console.log("Current Time:", new Date());
motorIntervals[motorId] = setInterval(async () => { motorIntervals[motorId] = setInterval(async () => {
const supplierTank = await Tank.findOne({ customerId, tankName: req.body.from, tankLocation: req.body.from_type.toLowerCase() }); const supplierTank = await Tank.findOne({ customerId, tankName: req.body.from, tankLocation: req.body.from_type.toLowerCase() });

Loading…
Cancel
Save