@xuda.io/notification_module 1.1.39 → 1.1.41
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 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -216,7 +216,7 @@ exports.submit_notification = async function (
|
|
|
216
216
|
const ret = await db_module.find_couch_query("xuda_sessions", {
|
|
217
217
|
selector: {
|
|
218
218
|
docType: "gtp_session",
|
|
219
|
-
stat: { $lt:
|
|
219
|
+
stat: { $lt: 3 },
|
|
220
220
|
uid,
|
|
221
221
|
fcm_token: { $gt: "" },
|
|
222
222
|
},
|
|
@@ -332,7 +332,7 @@ exports.get_notifications = async function (req) {
|
|
|
332
332
|
},
|
|
333
333
|
];
|
|
334
334
|
} else {
|
|
335
|
-
if (!
|
|
335
|
+
if (!req.to_app_id) {
|
|
336
336
|
selector.uid = req.uid;
|
|
337
337
|
}
|
|
338
338
|
}
|