@xuda.io/notification_module 1.1.81 → 1.1.83
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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
console.log('Notifications Module loaded...');
|
|
1
2
|
const path = require('path');
|
|
2
3
|
global._conf = require(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG));
|
|
3
4
|
|
|
@@ -355,7 +356,7 @@ exports.get_notifications = async function (req) {
|
|
|
355
356
|
selector.display_type = req.display_type;
|
|
356
357
|
}
|
|
357
358
|
|
|
358
|
-
if (req.read) {
|
|
359
|
+
if ((_.isBoolean(req.read) && req.read) || req.read == 'true') {
|
|
359
360
|
selector.read = true;
|
|
360
361
|
} else {
|
|
361
362
|
selector.read = false;
|