add roles in findBySupperior
This commit is contained in:
parent
6730c773fc
commit
cc9a92dbab
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user