From 96c124cab871c6dc89f4cefaddaea79264910c6e Mon Sep 17 00:00:00 2001 From: Varun Date: Thu, 24 Apr 2025 10:08:31 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 44512b8c..42534c66 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -6134,7 +6134,9 @@ async function processIotData(hw_Id, data) { for (const tank of tanks) { const { Id: tankhardwareId, level: tankHeight } = tank; const existingTank = await Tank.findOne({ hardwareId: hw_Id, tankhardwareId }); - + console.log(hw_Id,"hw_Id") + console.log(tankhardwareId,"tankhardwareId") + console.log(existingTank,"existingTank") if (!existingTank) continue; const customerId = existingTank.customerId;