Merge branch 'development' into 'devops-staging'

add roles in findBySupperior

See merge request empatnusabangsa/ppob/ppob-backend!14
This commit is contained in:
ilham dwi pratama 2021-12-10 07:27:50 +00:00
commit db028561a2

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,
}, },