mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-14 08:30:59 +01:00
fix getUnreadByField
This commit is contained in:
@@ -228,9 +228,10 @@ var async = require('async'),
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
value = value ? value.toString() : '';
|
||||
nids = notifications.filter(function(notification) {
|
||||
return notification && notification[field] !== value;
|
||||
return notification && notification[field] === value;
|
||||
}).map(function(notification) {
|
||||
return notification.nid;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user