@xuda.io/notification_module 1.1.62 → 1.1.63
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.
- package/index.js +4 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -725,16 +725,15 @@ 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 () {
|
|
735
730
|
console.log("notifications_validation_fx", doc);
|
|
736
731
|
},
|
|
737
732
|
};
|
|
738
733
|
|
|
734
|
+
if (!fx[doc.topic]) {
|
|
735
|
+
return true;
|
|
736
|
+
}
|
|
737
|
+
|
|
739
738
|
return await fx[doc.topic]();
|
|
740
739
|
};
|