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;
     }
   }