@xuda.io/notification_module 1.1.29 → 1.1.31

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 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -128,7 +128,7 @@ exports.submit_notification = async function (
128
128
  }
129
129
 
130
130
  if (topic) {
131
- const _topic = _conf?.notification_categories?.[type]?.topics?.[topic];
131
+ const _topic = notification_categories?.[type]?.topics?.[topic];
132
132
  if (_topic) {
133
133
  subject = _.template(_topic.subject)(params);
134
134
  delivery_method = _topic.delivery_method;
@@ -657,6 +657,26 @@ exports.get_system_notifications = async function (req) {
657
657
  };
658
658
 
659
659
  setTimeout(async () => {
660
- const aa = await import("/var/xuda/notification_templates.mjs");
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
+ });
661
681
  console.log(aa);
662
682
  }, 1000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.29",
3
+ "version": "1.1.31",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {