mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
fix callback
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user