@xuda.io/notification_module 1.1.36 → 1.1.38
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 +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -168,6 +168,7 @@ exports.submit_notification = async function (
|
|
|
168
168
|
read: false,
|
|
169
169
|
ref: ref || uuid,
|
|
170
170
|
date_created_ts: Date.now(),
|
|
171
|
+
date_created: Date.now(),
|
|
171
172
|
sender_uid,
|
|
172
173
|
stat: 3,
|
|
173
174
|
stat_ts: Date.now(),
|
|
@@ -331,7 +332,7 @@ exports.get_notifications = async function (req) {
|
|
|
331
332
|
},
|
|
332
333
|
];
|
|
333
334
|
} else {
|
|
334
|
-
selector.uid = req.uid;
|
|
335
|
+
if (!ret.to_app_id) selector.uid = req.uid;
|
|
335
336
|
}
|
|
336
337
|
}
|
|
337
338
|
|