@xuda.io/notification_module 1.1.100 → 1.1.101

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 +4 -13
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -495,19 +495,10 @@ export const update_system_notification = async (req) => {
495
495
  notification_doc.type = type;
496
496
  }
497
497
 
498
- global[`_notification_module_ch`].sendToQueue(
499
- 'ws_dashboard_module',
500
- Buffer.from(
501
- JSON.stringify({
502
- method: 'notification',
503
-
504
- data: {
505
- to: notification_doc.system ? uid : notification_doc.uid,
506
- data: notification_doc,
507
- },
508
- }),
509
- ),
510
- );
498
+ ws_dashboard_ms.notification({
499
+ to: notification_doc.system ? uid : notification_doc.uid,
500
+ data: notification_doc,
501
+ });
511
502
 
512
503
  return await db_module.save_couch_doc('xuda_notification', notification_doc);
513
504
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.100",
3
+ "version": "1.1.101",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {