From 40d5b4f8ba1196245cd7e08029c8abe3dd7dd2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 22 Mar 2018 17:02:39 -0400 Subject: [PATCH] change to eachSeries --- src/topics/delete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/delete.js b/src/topics/delete.js index 6121868c00..135a82be00 100644 --- a/src/topics/delete.js +++ b/src/topics/delete.js @@ -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);