diff --git a/apps/server/src/modules/user/uc/admin-api-user.uc.ts b/apps/server/src/modules/user/uc/admin-api-user.uc.ts index ab5a2a7d359..bf58d4e9493 100644 --- a/apps/server/src/modules/user/uc/admin-api-user.uc.ts +++ b/apps/server/src/modules/user/uc/admin-api-user.uc.ts @@ -22,17 +22,11 @@ export class AdminApiUserUc { roleNames: RoleName[]; schoolId: EntityId; }): Promise { - console.log('roleNames', props.roleNames); - const roleDtos = await this.roleService.findByNames(props.roleNames); - console.log('roleDtos', roleDtos); - const roles = roleDtos.map((r) => { if (!r.id) throw new Error(); return new RoleReference({ ...r, id: r.id }); }); - - console.log('roles', roles); const user = await this.userService.save({ ...props, roles }); if (!user.id) throw new Error(); const initialPassword = nanoid(12);