mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-05 22:29:13 +02:00
break up sync operation
This commit is contained in:
@@ -492,7 +492,7 @@ module.exports = function (db, module) {
|
||||
}
|
||||
|
||||
if (ids.length < options.batch && (!done || ids.length === 0)) {
|
||||
return next(null);
|
||||
return process.nextTick(next, null);
|
||||
}
|
||||
process(ids, function (err) {
|
||||
_next(err);
|
||||
|
||||
Reference in New Issue
Block a user