master^2
Bhaskar 9 months ago
parent a1f518fdf2
commit 8e6900e6c7

@ -2255,8 +2255,8 @@ console.log(fcmToken)
// const thresholdTimeMs = manual_threshold_time * 60 * 1000;
motorIntervals[motorId] = setTimeout(async () => {
try {
const stopMessage = `Threshold time of ${manual_threshold_time} minutes reached for motor supplying water to '${tankName}' in block '${blockName}'.`;
eventEmitter.emit('sendThresholdTimeNotification', fcmToken, stopMessage);
// const stopMessage = `Threshold time of ${manual_threshold_time} minutes reached for motor supplying water to '${tankName}' in block '${blockName}'.`;
// eventEmitter.emit('sendThresholdTimeNotification', fcmToken, stopMessage);
await Tank.updateOne(
{ customerId, "connections.inputConnections.motor_id": motorId },

Loading…
Cancel
Save