From c2f147994fef416ebec74a4252a59ceda244c328 Mon Sep 17 00:00:00 2001 From: Varun Date: Tue, 17 Dec 2024 16:30:44 +0530 Subject: [PATCH] test case 1 --- src/controllers/tanksController.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 4935f922..b389eee4 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -2127,6 +2127,11 @@ else if (currentWaterLevel >= highWaterThreshold) { const currentWaterPercentage = (currentWaterLevel / parseInt(supplierTank.capacity.replace(/,/g, ''), 10)) * 100; if (new Date() >= thresholdTime || currentWaterPercentage <= lowWaterThreshold) { + console.log(thresholdTime,"thresholdtime") + console.log(new Date(),"new time") + console.log(currentWaterPercentage,"currentWaterPercentage") + console.log(lowWaterThreshold,"lowWaterThreshold") + console.log("motor stopping because it entered this condition") await Tank.updateOne( { customerId, "connections.inputConnections.motor_id": motorId },