fix: approve user

This commit is contained in:
ilham 2022-01-24 13:11:13 +07:00
parent 173702891e
commit 69c478a7c9

View File

@ -308,7 +308,7 @@ export class UsersService {
const baseQuery = this.usersRepository
.createQueryBuilder('user')
.where(
'user.id != :id and user.superior_id = :superior and status_approval = :status and is_rejected is false',
'user.id != :id and status_approval = :status and is_rejected is false',
{
id: superrior.userId,
status: superrior.userId,