@xuda.io/notification_module 1.1.81 → 1.1.82

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.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -355,7 +355,7 @@ exports.get_notifications = async function (req) {
355
355
  selector.display_type = req.display_type;
356
356
  }
357
357
 
358
- if (req.read) {
358
+ if ((_.isBoolean(req.read) && req.read) || req.read == 'true') {
359
359
  selector.read = true;
360
360
  } else {
361
361
  selector.read = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.81",
3
+ "version": "1.1.82",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {