nikolayneykov

Untitled

Oct 6th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  public async getAllUsers(options: SearchUsersDTO): Promise<ShowUserDTO[]> {
  2.     const foundUsers: User[] = await this.usersRepository
  3.       .find({ where: { ...options, isDeleted: false }, relations: ['role'] });
  4.  
  5.     return foundUsers.map((user: User) => this.converterService.toShowUserDTO(user));
  6.   }
Add Comment
Please, Sign In to add comment