diff --git a/src/user/notifications.js b/src/user/notifications.js index e2c782a55f..ad42baa7c2 100644 --- a/src/user/notifications.js +++ b/src/user/notifications.js @@ -73,7 +73,7 @@ var async = require('async'), async.parallel({ unread: function(next) { - getNotifications('uid:' + uid + ':notifications:unread', 0, 9, function(notif_data) { + getNotifications('uid:' + uid + ':notifications:unread', 0, 9, function(notif_data, next) { notif_data.read = false; notif_data.readClass = !notif_data.read ? 'label-warning' : ''; next(null, notif_data); @@ -89,7 +89,8 @@ var async = require('async'), function filterDeleted(notifObj) { return !!notifObj; } - if(err) { + + if (err) { return callback(err); }