@xuda.io/notification_module 1.1.56 → 1.1.57

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 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -716,7 +716,11 @@ exports.notifications_validation_fx = async function (notification_id) {
716
716
  if (code < 0) return;
717
717
 
718
718
  if (!doc.topic) {
719
- await deactivate_notification();
719
+ await delete_notification();
720
+ return false;
721
+ }
722
+
723
+ if (!fx[doc.topic]) {
720
724
  return false;
721
725
  }
722
726
 
@@ -724,7 +728,5 @@ exports.notifications_validation_fx = async function (notification_id) {
724
728
  new_version_available: async function () {},
725
729
  };
726
730
 
727
- if (fx[method]) {
728
- return await fx[doc.topic]();
729
- }
731
+ return await fx[doc.topic]();
730
732
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.56",
3
+ "version": "1.1.57",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {