From 8e6900e6c7df4623707041491b47eb23bda8f2b6 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Mon, 20 Jan 2025 17:36:12 +0530 Subject: [PATCH] chnages --- src/controllers/tanksController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 },