add roles in findBySupperior

This commit is contained in:
ilham 2021-12-10 14:26:01 +07:00
parent 6730c773fc
commit cc9a92dbab

View File

@ -111,6 +111,7 @@ export class UsersService {
return this.usersRepository.findAndCount({ return this.usersRepository.findAndCount({
skip: page * 10, skip: page * 10,
take: 10, take: 10,
relations: ['roles'],
where: { where: {
superior: superriorId, superior: superriorId,
}, },