Fix seeding perf + batch role targets creation (#16337)

This commit is contained in:
Weiko
2025-12-04 20:29:48 +01:00
committed by GitHub
parent e653385485
commit 1991ee850e
11 changed files with 156 additions and 110 deletions
@@ -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,
});
}