@xuda.io/notification_module 1.1.62 → 1.1.64

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 +6 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -725,16 +725,17 @@ exports.notifications_validation_fx = async function (notification_id) {
725
725
  await delete_notification();
726
726
  return false;
727
727
  }
728
-
729
- if (!fx[doc.topic]) {
730
- return true;
731
- }
732
-
733
728
  const fx = {
734
729
  new_version_available: async function () {
730
+ const { code, data } = await db_module.get_app_obj(doc.app_id);
731
+ app_build_id;
735
732
  console.log("notifications_validation_fx", doc);
736
733
  },
737
734
  };
738
735
 
736
+ if (!fx[doc.topic]) {
737
+ return true;
738
+ }
739
+
739
740
  return await fx[doc.topic]();
740
741
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.62",
3
+ "version": "1.1.64",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {