Fix seeding perf + batch role targets creation (#16337)
This commit is contained in:
@@ -201,9 +201,9 @@ export class WorkspaceManagerService {
|
||||
where: { workspaceId, userId },
|
||||
});
|
||||
|
||||
await this.userRoleService.assignRoleToUserWorkspace({
|
||||
await this.userRoleService.assignRoleToManyUserWorkspace({
|
||||
workspaceId,
|
||||
userWorkspaceId: userWorkspace.id,
|
||||
userWorkspaceIds: [userWorkspace.id],
|
||||
roleId: adminRole.id,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user