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