UsersService: Add methods to find, create and delete users

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-10-12 21:46:53 +02:00
parent 1f22f47327
commit 219a3bcb5f
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 49 additions and 13 deletions

View file

@ -29,8 +29,10 @@ export class MeController {
}
@Get()
getMe(): UserInfoDto {
return this.usersService.getUserInfo();
async getMe(): Promise<UserInfoDto> {
return this.usersService.toUserDto(
await this.usersService.getUserByUsername('hardcoded'),
);
}
@Get('history')