@xuda.io/notification_module 1.1.75 → 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 +10 -9
  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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.75",
3
+ "version": "1.1.76",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {