diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 1c7ea167..495e5b38 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -2132,6 +2132,8 @@ else if (currentWaterLevel >= highWaterThreshold) { const currentWaterPercentage = (currentWaterLevel / parseInt(supplierTank.capacity.replace(/,/g, ''), 10)) * 100; if (new Date() >= thresholdTime || currentWaterPercentage <= lowWaterThreshold) { + console.log(new Date(),"new date") + console.log(thresholdTime,"thresholdTime") console.log("motor stopping because it entered this condition") await Tank.updateOne( { customerId, "connections.inputConnections.motor_id": motorId },