|
|
|
@ -3061,7 +3061,7 @@ exports.motorAction = async (req, reply) => {
|
|
|
|
|
receiverInitialwaterlevel: parseInt(receiverTank.waterlevel, 10)
|
|
|
|
|
});
|
|
|
|
|
await newMotorData.save();
|
|
|
|
|
|
|
|
|
|
console.log("entered time",motorId,motorStopStatus)
|
|
|
|
|
// Update the tank connections with start time and threshold time
|
|
|
|
|
for await (const tank of Tank.find({ "connections.inputConnections.motor_id": motorId })) {
|
|
|
|
|
this.publishMotorStopStatus(motorId, motorStopStatus);
|
|
|
|
|