-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/BE/415/get-user-info #441
Conversation
your testa have failed, please check the pipeline @tacettinburakeren |
@@ -179,4 +180,21 @@ export class UserService { | |||
await this.userRepository.save(user); | |||
return new ChangePasswordResponseDto(true); | |||
} | |||
|
|||
public async getUserInfo(userId: string): Promise<GetUserInfoResponseDto> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better if the user with all relations is fetched in one query since we will have additional relations. You can check this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks okay now
throw new NotFoundException('User not found'); | ||
} | ||
|
||
const response = new GetUserInfoResponseDto(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recently added user fields should be added also. These are not enough.
I created get user information endpoint.