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")