fixing crash with deleted notifications

v1.18.x
Julian Lam 9 years ago
parent 40f0076b77
commit f4187fc671

@ -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' : '';

Loading…
Cancel
Save