@xuda.io/notification_module 1.1.57 → 1.1.58
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 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -712,6 +712,10 @@ exports.notifications_validation_fx = async function (notification_id) {
|
|
|
712
712
|
doc.stat = 4;
|
|
713
713
|
await db_module.save_couch_doc("xuda_notification", doc);
|
|
714
714
|
};
|
|
715
|
+
const read_notification = async function () {
|
|
716
|
+
doc.read = true;
|
|
717
|
+
await db_module.save_couch_doc("xuda_notification", doc);
|
|
718
|
+
};
|
|
715
719
|
|
|
716
720
|
if (code < 0) return;
|
|
717
721
|
|