From 407370d26fd28e878177e988b47953b7dc81d987 Mon Sep 17 00:00:00 2001 From: Varun Date: Mon, 24 Mar 2025 12:14:47 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 8d433fd4..8884904d 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -2975,7 +2975,8 @@ exports.motorAction = async (req, reply) => { motorIntervals[motorId] = setInterval(async () => { console.log(motorId,"interval created") const supplierTank = await Tank.findOne({ customerId, tankName: req.body.from, tankLocation: req.body.from_type.toLowerCase() }); -console.log(parseInt(supplierTank.waterlevel, 10),"parseInt(supplierTank.waterlevel, 10)") +console.log("up") + console.log(supplierTank.waterlevel,"parseInt(supplierTank.waterlevel, 10)") const currentWaterLevel = parseInt(supplierTank.waterlevel, 10); const currentWaterPercentage = (currentWaterLevel / parseInt(supplierTank.capacity.replace(/,/g, ''), 10)) * 100; const notificationTracker = new Map();