Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Get(':userId')
- async findUserById(
- @Param('userId', new ParseIntPipe()) userId: number,
- @UserSession() loggedUser: UserSessionDTO,
- ): Promise<UserDTO> {
- return await this.usersService.findUserById(userId, loggedUser ? loggedUser.id : -1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement