From 4ab16d849050299307c4c1c461078903aa378031 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Tue, 25 Feb 2025 13:17:13 +0530 Subject: [PATCH] changes --- 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 20f73320..1200dab0 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -3036,13 +3036,13 @@ const checkWaterLevel = async (customerId, motorId, fcmToken, receiverTank) => { // Check for low water levels if (currentWaterPercentage <= 20 && !notificationSentStatus.lowWater) { - eventEmitter.emit('sendLowWaterNotification', fcmToken, `Water level has dropped below 20%.`); + // eventEmitter.emit('sendLowWaterNotification', fcmToken, `Water level has dropped below 20%.`); notificationSentStatus.lowWater = true; } // Check for critically low water levels if (currentWaterPercentage <= 10 && !notificationSentStatus.criticallyLowWater) { - eventEmitter.emit('sendCriticalLowWaterNotification', fcmToken, `Water level has dropped below 10%.`); + // eventEmitter.emit('sendCriticalLowWaterNotification', fcmToken, `Water level has dropped below 10%.`); notificationSentStatus.criticallyLowWater = true; } };