@xuda.io/notification_module 1.1.58 → 1.1.60
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
|
@@ -714,6 +714,8 @@ exports.notifications_validation_fx = async function (notification_id) {
|
|
|
714
714
|
};
|
|
715
715
|
const read_notification = async function () {
|
|
716
716
|
doc.read = true;
|
|
717
|
+
doc.read_ts = Date.now();
|
|
718
|
+
doc.read_note = "read by notifications_validation_fx";
|
|
717
719
|
await db_module.save_couch_doc("xuda_notification", doc);
|
|
718
720
|
};
|
|
719
721
|
|
|
@@ -729,7 +731,9 @@ exports.notifications_validation_fx = async function (notification_id) {
|
|
|
729
731
|
}
|
|
730
732
|
|
|
731
733
|
const fx = {
|
|
732
|
-
new_version_available: async function () {
|
|
734
|
+
new_version_available: async function () {
|
|
735
|
+
console.log("notifications_validation_fx", doc);
|
|
736
|
+
},
|
|
733
737
|
};
|
|
734
738
|
|
|
735
739
|
return await fx[doc.topic]();
|