Fixed wrong callback given to groups.join

This commit is contained in:
Dravere
2018-06-13 12:56:59 +02:00
committed by Julian Lam
parent e7cd552e33
commit 17e7fe3070

View File

@@ -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);