From 17e7fe3070828ff7b99292ec08b267ed0290b253 Mon Sep 17 00:00:00 2001 From: Dravere Date: Wed, 13 Jun 2018 12:56:59 +0200 Subject: [PATCH] Fixed wrong callback given to groups.join --- src/upgrades/1.10.0/view_deleted_privilege.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upgrades/1.10.0/view_deleted_privilege.js b/src/upgrades/1.10.0/view_deleted_privilege.js index 85cf96a257..2494d8b2c6 100644 --- a/src/upgrades/1.10.0/view_deleted_privilege.js +++ b/src/upgrades/1.10.0/view_deleted_privilege.js @@ -18,7 +18,7 @@ module.exports = { async.waterfall([ async.apply(db.getSortedSetRange.bind(db), 'group:cid:' + cid + ':privileges:moderate:members', 0, -1), function (uids, next) { - async.each(uids, uid => groups.join('cid:' + cid + ':privileges:posts:view_deleted', uid, next), next); + async.each(uids, (uid, next) => groups.join('cid:' + cid + ':privileges:posts:view_deleted', uid, next), next); }, ], next); }, callback);