@xuda.io/notification_module 1.1.90 → 1.1.92

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.
Files changed (2) hide show
  1. package/index.mjs +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -72,7 +72,7 @@ export const update_notification_status = async (req) => {
72
72
 
73
73
  export const submit_notification = async (req, _ch = global[`_notification_module_ch`]) => {
74
74
  let { type, app_id, to_app_id, uid_arr, subject = '', body = '', delivery_method = [], display_type = 'info', ref, email, sender_uid, system, topic, params } = req;
75
-
75
+ let obj;
76
76
  const { notification_categories } = await import(path.join(process.env.XUDA_HOME, 'notification_templates.mjs'));
77
77
 
78
78
  let icon = 'https://dev.xuda.io/dist/images/xuda_ico.png';
@@ -110,8 +110,8 @@ export const submit_notification = async (req, _ch = global[`_notification_modul
110
110
  let send_result = {};
111
111
 
112
112
  for await (let uid of uid_arr) {
113
+ obj = {};
113
114
  for await (let delivery_method_item of delivery_method) {
114
- let obj = {};
115
115
  let account_ret;
116
116
  if (!system) {
117
117
  account_ret = await db_module.get_couch_doc('xuda_accounts', uid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.90",
3
+ "version": "1.1.92",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {