@xuda.io/notification_module 1.1.66 → 1.1.68
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 +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -728,8 +728,12 @@ exports.notifications_validation_fx = async function (notification_id) {
|
|
|
728
728
|
const fx = {
|
|
729
729
|
new_version_available: async function () {
|
|
730
730
|
const { code, data: app_doc } = await db_module.get_app_obj(doc.app_id);
|
|
731
|
-
if(app_doc.app_build_id
|
|
731
|
+
if (app_doc.app_build_id >= doc.params.build) {
|
|
732
|
+
await read_notification();
|
|
733
|
+
return false;
|
|
734
|
+
}
|
|
732
735
|
console.log("notifications_validation_fx", doc);
|
|
736
|
+
return true;
|
|
733
737
|
},
|
|
734
738
|
};
|
|
735
739
|
|