@xuda.io/notification_module 1.1.33 → 1.1.35

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 +22 -22
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -107,7 +107,7 @@ exports.submit_notification = async function (
107
107
  // return { code: -1, data: "error: uid is mandatory field" };
108
108
  // }
109
109
 
110
- const notification_categories = await import(
110
+ const { notification_categories } = await import(
111
111
  path.join(process.env.XUDA_HOME, "notification_templates.mjs")
112
112
  );
113
113
 
@@ -657,26 +657,26 @@ exports.get_system_notifications = async function (req) {
657
657
  };
658
658
 
659
659
  setTimeout(async () => {
660
- const app_id = "vps4d6ec68e01d97ef65a8bd86088b26ca2",
661
- uid = "341cf2d32991a68e4d8aaba6c16e15cc",
662
- ip = "192.11.22.333",
663
- name = "Boaz Avrahami";
664
-
665
- const aa = await module.exports.submit_notification({
666
- type: "deploy",
667
- app_id: app_id,
668
- uid_arr: [uid],
669
- topic: "welcome_aboard_vps",
670
- params: {
671
- name: name,
672
- ip: ip,
673
- dashboard_url: `https://xuda.io/dashboard/project/${app_id}/admin/overview`,
674
- dashboard_ssh_url: `https://xuda.io/dashboard/project/${app_id}/admin/overview`,
675
- dashboard_ssh_assign_url: `https://xuda.io/dashboard/settings/ssh_keys`,
676
- support_url: `https://xuda.io/schedule/sales?topic=Sales&subtopic=General+Inquiries`,
677
- },
678
- ref: null,
679
- email: null,
680
- });
660
+ // const app_id = "vps4d6ec68e01d97ef65a8bd86088b26ca2",
661
+ // uid = "341cf2d32991a68e4d8aaba6c16e15cc",
662
+ // ip = "192.11.22.333",
663
+ // name = "Boaz Avrahami";
664
+
665
+ // const aa = await module.exports.submit_notification({
666
+ // type: "deploy",
667
+ // app_id: app_id,
668
+ // uid_arr: [uid],
669
+ // topic: "welcome_aboard_vps",
670
+ // params: {
671
+ // name: name,
672
+ // ip: ip,
673
+ // dashboard_url: `https://xuda.io/dashboard/project/${app_id}/admin/overview`,
674
+ // dashboard_ssh_url: `https://xuda.io/dashboard/project/${app_id}/admin/overview`,
675
+ // dashboard_ssh_assign_url: `https://xuda.io/dashboard/settings/ssh_keys`,
676
+ // support_url: `https://xuda.io/schedule/sales?topic=Sales&subtopic=General+Inquiries`,
677
+ // },
678
+ // ref: null,
679
+ // email: null,
680
+ // });
681
681
  console.log(aa);
682
682
  }, 2000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {