@xuda.io/notification_module 1.1.106 → 1.1.107

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.mjs +5 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -14,7 +14,8 @@ const _common = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda_no
14
14
  const module_path = path.join(process.env.XUDA_HOME, 'cpi') + (!_conf.is_debug ? '/node_modules/@xuda.io' : '');
15
15
  const db_module = await import(`${module_path}/db_module/index.mjs`);
16
16
  const email_ms = await import(`${module_path}/email_module/index_ms.mjs`);
17
- const ws_dashboard_ms = await import(`${module_path}/ws_dashboard_module/index_ms.mjs`);
17
+
18
+ const ws_dashboard_msa = await import(`${module_path}/ws_dashboard_module/index_msa.mjs`);
18
19
 
19
20
  //////////////////// FCM /////////////////////
20
21
  const serviceAccount = _conf.firebase_serviceAccount;
@@ -54,7 +55,7 @@ export const update_notification_status = async (req) => {
54
55
  notification_doc.stat_ts = Date.now();
55
56
  notification_doc.stat = stat;
56
57
 
57
- ws_dashboard_ms.notification({
58
+ ws_dashboard_msa.notification({
58
59
  to: notification_doc.system ? uid : notification_doc.uid,
59
60
  data: notification_doc,
60
61
  });
@@ -154,7 +155,7 @@ export const submit_notification = async (req, _ch = global[`_notification_modul
154
155
  case 'banner':
155
156
  case 'consent':
156
157
  case 'alert':
157
- ws_dashboard_ms.notification({
158
+ ws_dashboard_msa.notification({
158
159
  to: uid,
159
160
  data: obj,
160
161
  });
@@ -495,7 +496,7 @@ export const update_system_notification = async (req) => {
495
496
  notification_doc.type = type;
496
497
  }
497
498
 
498
- ws_dashboard_ms.notification({
499
+ ws_dashboard_msa.notification({
499
500
  to: notification_doc.system ? uid : notification_doc.uid,
500
501
  data: notification_doc,
501
502
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.106",
3
+ "version": "1.1.107",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {