@xuda.io/notification_module 1.1.29 → 1.1.30
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 +1 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -128,7 +128,7 @@ exports.submit_notification = async function (
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
if (topic) {
|
|
131
|
-
const _topic =
|
|
131
|
+
const _topic = notification_categories?.[type]?.topics?.[topic];
|
|
132
132
|
if (_topic) {
|
|
133
133
|
subject = _.template(_topic.subject)(params);
|
|
134
134
|
delivery_method = _topic.delivery_method;
|
|
@@ -655,8 +655,3 @@ exports.get_system_notifications = async function (req) {
|
|
|
655
655
|
req.read = false;
|
|
656
656
|
return await module.exports.get_notifications(req);
|
|
657
657
|
};
|
|
658
|
-
|
|
659
|
-
setTimeout(async () => {
|
|
660
|
-
const aa = await import("/var/xuda/notification_templates.mjs");
|
|
661
|
-
console.log(aa);
|
|
662
|
-
}, 1000);
|