mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
黑名单功能
This commit is contained in:
1 parent
55912b087d
commit
160b4482cc
11 files changed
+282
-158
No files matched your search
@@ -106,11 +106,12 @@ class DomainUserHandler extends ManageHandler {
|
||||
for (const role of roles) rudocs[role._id] = [];
|
||||
for (const udoc of udocs) {
|
||||
uids.push(udoc.uid);
|
||||
// TODO Improve here
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
const ud = await user.getById(domainId, udoc.uid);
|
||||
const ud = user.getById(domainId, udoc.uid);
|
||||
rudocs[ud.role].push(ud);
|
||||
}
|
||||
const tasks = [];
|
||||
for (const key in rudocs) tasks.push(Promise.all(rudocs[key]));
|
||||
await Promise.all(tasks);
|
||||
const rolesSelect = roles.map((role) => [role._id, role._id]);
|
||||
const udict = await user.getList(domainId, uids);
|
||||
const path = [
|
||||
|
||||
Reference in new issue
Block a user