fix(server): user update (#2143)

* fix(server): user update

* update dto

* generate api

* improve validation

* add e2e tests for updating user

---------

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
This commit is contained in:
Alex
2023-04-01 11:43:45 -05:00
committed by GitHub
parent aaaf1a6cf8
commit d04f340b5b
10 changed files with 117 additions and 86 deletions
@@ -90,6 +90,7 @@ export class UserService {
if (!user) {
throw new NotFoundException('User not found');
}
const updatedUser = await this.userCore.updateUser(authUser, dto.id, dto);
return mapUser(updatedUser);
}