From cc9a92dbab72003200e0222e3c78759c69054809 Mon Sep 17 00:00:00 2001 From: ilham Date: Fri, 10 Dec 2021 14:26:01 +0700 Subject: [PATCH] add roles in findBySupperior --- src/users/users.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/users/users.service.ts b/src/users/users.service.ts index e7ff8c6..f4f5329 100644 --- a/src/users/users.service.ts +++ b/src/users/users.service.ts @@ -111,6 +111,7 @@ export class UsersService { return this.usersRepository.findAndCount({ skip: page * 10, take: 10, + relations: ['roles'], where: { superior: superriorId, },