nikolayneykov

Untitled

Dec 5th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   @Get()
  2.   async findUsers(
  3.     @Query(new ValidationPipe({ transform: true, whitelist: true })) options: SearchOptionsDTO,
  4.     @UserSession() loggedUser: UserSessionDTO,
  5.   ): Promise<UserDTO[]> {
  6.     return await this.usersService.findUsers(options, loggedUser ? loggedUser.id : -1);
  7.   }
Add Comment
Please, Sign In to add comment