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