From 2416ee856604d60f6a26ca4782bf88921fafe3cd Mon Sep 17 00:00:00 2001 From: Varun Date: Fri, 21 Mar 2025 14:21:16 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index c4dff7f1..493a5f15 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -3032,6 +3032,8 @@ exports.motorAction = async (req, reply) => { "connections.inputConnections.$.manual_threshold_time": null, "connections.inputConnections.$.manual_threshold_percentage": null, "connections.inputConnections.$.stopTime": currentTime, + "connections.inputConnections.$.start_instance_id": null, + } } ); @@ -3057,6 +3059,7 @@ exports.motorAction = async (req, reply) => { console.log(motorData,"motorData") if (motorData) { console.log("got into if") + const receiverTank = await Tank.findOne({ customerId, tankName: motorData.receiverTank, tankLocation: motorData.receiver_type.toLowerCase() }); const receiverFinalWaterLevel = parseInt(receiverTank.waterlevel, 10); console.log(receiverFinalWaterLevel,"receiverFinalWaterLevel")