@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.
- package/index.js +11 -10
- 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
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
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
|
-
|
|
738
|
+
|
|
738
739
|
return true;
|
|
739
740
|
},
|
|
740
741
|
};
|