From 7ef7b38d5806ec4470fc47b56c519ef8ad5b3c15 Mon Sep 17 00:00:00 2001 From: varun Date: Thu, 9 May 2024 08:04:53 -0400 Subject: [PATCH] changes --- src/controllers/tanksController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index c122ddfb..f878c8ca 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -1235,7 +1235,9 @@ exports.IotDevice = async (req, reply) => { // Update water level of tanks linked through output connections for (const outputConnection of existingTank.connections.outputConnections) { + console.log(outputConnection,"this is for testing") const linkedTank = await Tank.findOne({ hardwareId: outputConnection.outputConnections }); + console.log(linkedTank) if (linkedTank) { linkedTank.waterlevel = existingTank.waterlevel; await linkedTank.save();