mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
fixing crash with deleted notifications
This commit is contained in:
@@ -78,8 +78,8 @@ var async = require('async'),
|
||||
|
||||
notifs.forEach(function(notification, index) {
|
||||
if (!notification) {
|
||||
winston.verbose('[notifications.get] nid ' + nids[index] + ' not found. Removing.');
|
||||
deletedNids.push(nids[index]);
|
||||
winston.verbose('[notifications.get] nid ' + notification.nid + ' not found. Removing.');
|
||||
deletedNids.push(notification.nid);
|
||||
} else {
|
||||
notification.read = read;
|
||||
notification.readClass = !notification.read ? 'unread' : '';
|
||||
|
||||
Reference in New Issue
Block a user