From 679024c42403aa9d46070a7adb83e1f89dbe9185 Mon Sep 17 00:00:00 2001 From: varun Date: Wed, 15 May 2024 08:00:36 -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 7da203f2..c106da54 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(),real_motor_status:"4" } } + { $set: { "connections.inputConnections.$.manual_threshold_percentage": threshold_water_level.toString(),real_motor_status:"3" } } ); // Start monitoring water level based on threshold percentage