From 7766665de3442d4c97f8b83d40661889e9d34311 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Fri, 21 Mar 2025 11:55:11 +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 6ca7aa46..6f9af4df 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -2181,11 +2181,11 @@ const sendNotification = async (hw_Id, customerId, fcmIds, title, body) => { console.log(`✅ Notification sent successfully to token: ${token}`); console.log("📬 FCM Response:", response); console.log(`📡 Sending notification to Customer ID: ${customerId}`); - console.log(`🔍 FCM Tokens:`, fcmTokens); + //console.log(`🔍 FCM Tokens:`, fcmTokens); } catch (error) { - console.error(`❌ Failed to send notification to token: ${token}`, error); + // console.error(`❌ Failed to send notification to token: ${token}`, error); if (error.code === "messaging/registration-token-not-registered") { await User.updateOne({ customerId }, { $pull: { fcmIds: token } });