Skip to content

Commit

Permalink
chore: remove console.logs again after fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeppner-dataport committed Oct 22, 2024
1 parent dd954e4 commit c82202a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/server/src/modules/user/uc/admin-api-user.uc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,11 @@ export class AdminApiUserUc {
roleNames: RoleName[];
schoolId: EntityId;
}): Promise<CreateddUserAndAccount> {
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);
Expand Down

0 comments on commit c82202a

Please sign in to comment.