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