@xuda.io/notification_module 1.1.40 → 1.1.42

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 +38 -24
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -216,7 +216,7 @@ exports.submit_notification = async function (
216
216
  const ret = await db_module.find_couch_query("xuda_sessions", {
217
217
  selector: {
218
218
  docType: "gtp_session",
219
- stat: { $lt: 4 },
219
+ stat: { $lt: 3 },
220
220
  uid,
221
221
  fcm_token: { $gt: "" },
222
222
  },
@@ -659,26 +659,40 @@ exports.get_system_notifications = async function (req) {
659
659
  return await module.exports.get_notifications(req);
660
660
  };
661
661
 
662
- setTimeout(async () => {
663
- // const app_id = "vps4d6ec68e01d97ef65a8bd86088b26ca2",
664
- // uid = "341cf2d32991a68e4d8aaba6c16e15cc",
665
- // ip = "192.11.22.333",
666
- // name = "Boaz Avrahami";
667
- // const aa = await module.exports.submit_notification({
668
- // type: "deploy",
669
- // app_id: app_id,
670
- // uid_arr: [uid],
671
- // topic: "welcome_aboard_vps",
672
- // params: {
673
- // name: name,
674
- // ip: ip,
675
- // dashboard_url: `https://xuda.io/dashboard/project/${app_id}/admin/overview`,
676
- // dashboard_ssh_url: `https://xuda.io/dashboard/project/${app_id}/admin/overview`,
677
- // dashboard_ssh_assign_url: `https://xuda.io/dashboard/settings/ssh_keys`,
678
- // support_url: `https://xuda.io/schedule/sales?topic=Sales&subtopic=General+Inquiries`,
679
- // },
680
- // ref: null,
681
- // email: null,
682
- // });
683
- // console.log(aa);
684
- }, 2000);
662
+ // setTimeout(async () => {
663
+ // // const app_id = "vps4d6ec68e01d97ef65a8bd86088b26ca2",
664
+ // // uid = "341cf2d32991a68e4d8aaba6c16e15cc",
665
+ // // ip = "192.11.22.333",
666
+ // // name = "Boaz Avrahami";
667
+ // // const aa = await module.exports.submit_notification({
668
+ // // type: "deploy",
669
+ // // app_id: app_id,
670
+ // // uid_arr: [uid],
671
+ // // topic: "welcome_aboard_vps",
672
+ // // params: {
673
+ // // name: name,
674
+ // // ip: ip,
675
+ // // dashboard_url: `https://xuda.io/dashboard/project/${app_id}/admin/overview`,
676
+ // // dashboard_ssh_url: `https://xuda.io/dashboard/project/${app_id}/admin/overview`,
677
+ // // dashboard_ssh_assign_url: `https://xuda.io/dashboard/settings/ssh_keys`,
678
+ // // support_url: `https://xuda.io/schedule/sales?topic=Sales&subtopic=General+Inquiries`,
679
+ // // },
680
+ // // ref: null,
681
+ // // email: null,
682
+ // // });
683
+ // // console.log(aa);
684
+ // }, 2000);
685
+
686
+ exports.notifications_validation_class = async function (params) {};
687
+
688
+ class notifications_validation_class {
689
+ constructor(name) {
690
+ this.name = name;
691
+ }
692
+
693
+ sayHello() {
694
+ console.log(`Hello, my name is ${this.name}`);
695
+ }
696
+ }
697
+
698
+ module.exports = notifications_validation_class;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.40",
3
+ "version": "1.1.42",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {