change to eachSeries

This commit is contained in:
Barış Soner Uşaklı
2018-03-22 17:02:39 -04:00
parent 77d47b31fb
commit 40d5b4f8ba

View File

@@ -116,7 +116,7 @@ module.exports = function (Topics) {
function (_mainPid, next) {
mainPid = _mainPid;
batch.processSortedSet('tid:' + tid + ':posts', function (pids, next) {
async.eachLimit(pids, 10, function (pid, next) {
async.eachSeries(pids, function (pid, next) {
posts.purge(pid, uid, next);
}, next);
}, { alwaysStartAt: 0 }, next);