This commit is contained in:
barisusakli
2017-04-21 21:36:42 -04:00
parent 73700ed747
commit 75e5f2da74
4 changed files with 70 additions and 60 deletions

View File

@@ -257,6 +257,7 @@ SocketUser.getUnreadCounts = function (socket, data, callback) {
async.parallel({
unreadTopicCount: async.apply(topics.getTotalUnread, socket.uid),
unreadNewTopicCount: async.apply(topics.getTotalUnread, socket.uid, 'new'),
unreadWatchedTopicCount: async.apply(topics.getTotalUnread, socket.uid, 'watched'),
unreadChatCount: async.apply(messaging.getUnreadCount, socket.uid),
unreadNotificationCount: async.apply(user.notifications.getUnreadCount, socket.uid),
}, callback);