tweak MkRolePreview

This commit is contained in:
syuilo
2023-01-14 11:14:14 +09:00
parent 027ef1ea4a
commit 2bedc084a3
2 changed files with 16 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ export class RoleEntityService {
isModerator: role.isModerator,
canEditMembersByModerator: role.canEditMembersByModerator,
options: roleOptions,
usersCount: assigns.length,
...(opts.detail ? {
users: this.userEntityService.packMany(assigns.map(x => x.userId), me),
} : {}),