change in motoraction

master
varun 1 year ago
parent e87faa948a
commit f43618f079

@ -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

Loading…
Cancel
Save