@xuda.io/notification_module 1.1.26 → 1.1.28
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 +7 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -106,6 +106,12 @@ exports.submit_notification = async function (
|
|
|
106
106
|
// if (!uid) {
|
|
107
107
|
// return { code: -1, data: "error: uid is mandatory field" };
|
|
108
108
|
// }
|
|
109
|
+
|
|
110
|
+
const notification_categories=await import(path.join(
|
|
111
|
+
process.env.XUDA_HOME,
|
|
112
|
+
"notification_templates.mjs",
|
|
113
|
+
|
|
114
|
+
|
|
109
115
|
var icon = "https://dev.xuda.io/dist/images/xuda_ico.png";
|
|
110
116
|
if (app_id) {
|
|
111
117
|
const app_id_reference = await _common.get_project_app_id(app_id, true);
|
|
@@ -652,6 +658,6 @@ exports.get_system_notifications = async function (req) {
|
|
|
652
658
|
};
|
|
653
659
|
|
|
654
660
|
setTimeout(async () => {
|
|
655
|
-
const aa = import("/var/xuda/notification_templates.mjs");
|
|
661
|
+
const aa = await import("/var/xuda/notification_templates.mjs");
|
|
656
662
|
console.log(aa);
|
|
657
663
|
}, 1000);
|