diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 84df5da0..46cdf23c 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -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 },