guoziyun 6 ماه پیش
والد
کامیت
3910113399
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      oms/dist/src/services/fcmService.js
  2. 2 2
      oms/src/services/fcmService.ts

+ 2 - 2
oms/dist/src/services/fcmService.js

@@ -80,11 +80,11 @@ class FCMService {
         };
         try {
             const response = await admin.messaging().send(message);
-            console.log("Successfully sent message:", response);
+            // console.log("Successfully sent message:", response);
             return response; // response is the message ID
         }
         catch (error) {
-            console.error("Error sending message:", error);
+            // console.error("Error sending message:", error);
             return error;
         }
     }

+ 2 - 2
oms/src/services/fcmService.ts

@@ -50,10 +50,10 @@ export class FCMService {
 
     try {
       const response = await admin.messaging().send(message);
-      console.log("Successfully sent message:", response);
+      // console.log("Successfully sent message:", response);
       return response; // response is the message ID
     } catch (error) {
-      console.error("Error sending message:", error);
+      // console.error("Error sending message:", error);
       return error as Error;
     }
   }