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