mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
each limit on pushUnreadCount
This commit is contained in:
@@ -169,7 +169,7 @@ module.exports = function(Topics) {
|
||||
return parseInt(value, 10) !== 0;
|
||||
});
|
||||
|
||||
async.each(uids, function(uid, next) {
|
||||
async.eachLimit(uids, 5, function(uid, next) {
|
||||
Topics.getTotalUnread(uid, function(err, count) {
|
||||
websockets.in('uid_' + uid).emit('event:unread.updateCount', null, count);
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user