diff --git a/src/users/users.service.ts b/src/users/users.service.ts index a57f79d..bb64689 100644 --- a/src/users/users.service.ts +++ b/src/users/users.service.ts @@ -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,