From 7c5f7d59bb29d0ba5767b47f78379b940d342874 Mon Sep 17 00:00:00 2001 From: Varun Date: Mon, 24 Mar 2025 12:21:22 +0530 Subject: [PATCH] chnages --- src/controllers/tanksController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index d8f11d50..90200406 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -2974,6 +2974,7 @@ exports.motorAction = async (req, reply) => { motorIntervals[motorId] = setInterval(async () => { console.log(motorId,"interval created") + console.log(customerId,req.body.from,req.body.from_type.toLowerCase()) const supplierTank = await Tank.findOne({ customerId, tankName: req.body.from, tankLocation: req.body.from_type.toLowerCase() }); console.log("up",supplierTank) console.log(supplierTank.waterlevel,"parseInt(supplierTank.waterlevel, 10)")