From f43618f079e2b92047a2dfdaa2d78276519b7e13 Mon Sep 17 00:00:00 2001 From: varun Date: Wed, 15 May 2024 07:59:21 -0400 Subject: [PATCH] change in motoraction --- src/controllers/tanksController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 06198bf3..7da203f2 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -929,7 +929,7 @@ exports.motorAction = async (req, reply) => { // Update water level threshold await Tank.updateOne( { customerId, "connections.inputConnections.motor_id": motorId }, - { $set: { "connections.inputConnections.$.manual_threshold_percentage": threshold_water_level.toString() } } + { $set: { "connections.inputConnections.$.manual_threshold_percentage": threshold_water_level.toString(),real_motor_status:"4" } } ); // Start monitoring water level based on threshold percentage