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