From 4907773e6afbde6f115aad61e18fda0ac8504cec Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 10 May 2016 11:41:35 +0300 Subject: [PATCH] closes #4615 --- src/user/delete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/delete.js b/src/user/delete.js index 011ed0aa12..99119c7ffb 100644 --- a/src/user/delete.js +++ b/src/user/delete.js @@ -30,7 +30,7 @@ module.exports = function(User) { function deletePosts(callerUid, uid, callback) { batch.processSortedSet('uid:' + uid + ':posts', function(ids, next) { - async.eachSeries(ids, function(pid, netx) { + async.eachSeries(ids, function(pid, next) { posts.purge(pid, callerUid, next); }, next); }, {alwaysStartAt: 0}, callback);