mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
use series
This commit is contained in:
@@ -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, next) => groups.join('cid:' + cid + ':privileges:posts:view_deleted', uid, next), next);
|
||||
async.eachSeries(uids, (uid, next) => groups.join('cid:' + cid + ':privileges:posts:view_deleted', uid, next), next);
|
||||
},
|
||||
], next);
|
||||
}, callback);
|
||||
|
||||
Reference in New Issue
Block a user