|
|
@ -929,7 +929,7 @@ exports.motorAction = async (req, reply) => {
|
|
|
|
// Update water level threshold
|
|
|
|
// Update water level threshold
|
|
|
|
await Tank.updateOne(
|
|
|
|
await Tank.updateOne(
|
|
|
|
{ customerId, "connections.inputConnections.motor_id": motorId },
|
|
|
|
{ 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
|
|
|
|
// Start monitoring water level based on threshold percentage
|
|
|
|