mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-07 08:02:50 +01:00
fixed #1488 - emails are processed 100 at a time
This commit is contained in:
@@ -59,7 +59,7 @@ module.exports = function(User) {
|
||||
});
|
||||
|
||||
// Consider using eachLimit, but *only* if people complain about email relays choking -- otherwise we're ok.
|
||||
async.each(users, function(userObj, next) {
|
||||
async.eachLimit(users, 100, function(userObj, next) {
|
||||
user.notifications.getDailyUnread(userObj.uid, function(err, notifications) {
|
||||
// Turn relative URLs into absolute ones
|
||||
for(var i=0; i<notifications.length; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user