Skip to content

Node.js based forum software built for the modern web

eachLimit notifications.push

barisusakli77a7c5caefa4
diff --git a/src/notifications.js b/src/notifications.js
index ecd73e22ed..f0e36a5d76 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -128,7 +128,7 @@ var async = require('async'),
return callback(err);
}
- async.each(uids, function(uid, next) {
+ async.eachLimit(uids, 10, function(uid, next) {
if (!parseInt(uid, 10)) {
return next();
}