@xuda.io/notification_module 1.1.53 → 1.1.55
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 +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -708,11 +708,16 @@ exports.notifications_validation_fx = async function (notification_id) {
|
|
|
708
708
|
"xuda_notification",
|
|
709
709
|
notification_id
|
|
710
710
|
);
|
|
711
|
+
const deactivate_notification = async function () {
|
|
712
|
+
doc.stat = 4;
|
|
713
|
+
await db_module.save_couch_doc("xuda_notification", doc);
|
|
714
|
+
};
|
|
711
715
|
|
|
712
716
|
if (code < 0) return;
|
|
713
717
|
|
|
714
718
|
if (!doc.topic) {
|
|
715
|
-
|
|
719
|
+
await deactivate_notification();
|
|
720
|
+
return false;
|
|
716
721
|
}
|
|
717
722
|
|
|
718
723
|
const fx = {
|