@xuda.io/notification_module 1.1.74 → 1.1.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +11 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -261,15 +261,16 @@ exports.submit_notification = async function (
261
261
  },
262
262
  },
263
263
  };
264
-
265
- messaging
266
- .send(message)
267
- .then((response) => {
268
- console.log("Successfully sent message:", response);
269
- })
270
- .catch((error) => {
271
- console.error("Error sending message:", error);
272
- });
264
+ try {
265
+ messaging
266
+ .send(message)
267
+ .then((response) => {
268
+ console.log("Successfully sent message:", response);
269
+ })
270
+ .catch((error) => {
271
+ console.error("Error sending message:", error);
272
+ });
273
+ } catch (error) {}
273
274
  }
274
275
  }
275
276
  } catch (err) {
@@ -734,7 +735,7 @@ exports.notifications_validation_fx = async function (notification_id) {
734
735
  await read_notification();
735
736
  return false;
736
737
  }
737
- console.log("notifications_validation_fx", doc);
738
+
738
739
  return true;
739
740
  },
740
741
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.74",
3
+ "version": "1.1.76",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {