Fixed wrong callback given to groups.join

v1.18.x
Dravere 7 years ago committed by Julian Lam
parent e7cd552e33
commit 17e7fe3070

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

Loading…
Cancel
Save