|
|
@ -18,7 +18,7 @@ module.exports = {
|
|
|
|
async.waterfall([
|
|
|
|
async.waterfall([
|
|
|
|
async.apply(db.getSortedSetRange.bind(db), 'group:cid:' + cid + ':privileges:moderate:members', 0, -1),
|
|
|
|
async.apply(db.getSortedSetRange.bind(db), 'group:cid:' + cid + ':privileges:moderate:members', 0, -1),
|
|
|
|
function (uids, next) {
|
|
|
|
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);
|
|
|
|
], next);
|
|
|
|
}, callback);
|
|
|
|
}, callback);
|
|
|
|