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