@xuda.io/notification_module 1.1.48 → 1.1.50
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 +8 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -173,6 +173,8 @@ exports.submit_notification = async function (
|
|
|
173
173
|
stat: 3,
|
|
174
174
|
stat_ts: Date.now(),
|
|
175
175
|
system,
|
|
176
|
+
topic,
|
|
177
|
+
params,
|
|
176
178
|
};
|
|
177
179
|
|
|
178
180
|
switch (delivery_method_item) {
|
|
@@ -701,7 +703,12 @@ exports.get_system_notifications = async function (req) {
|
|
|
701
703
|
|
|
702
704
|
// module.exports = notifications_validation_class;
|
|
703
705
|
|
|
704
|
-
exports.notifications_validation_fx = async function (
|
|
706
|
+
exports.notifications_validation_fx = async function (notification_id) {
|
|
707
|
+
const ret = await db_module.get_couch_doc(
|
|
708
|
+
"xuda_notification",
|
|
709
|
+
notification_id
|
|
710
|
+
);
|
|
711
|
+
|
|
705
712
|
const fx = {
|
|
706
713
|
new_version_available: async function () {},
|
|
707
714
|
};
|