From 69c478a7c9277712ff7875a3135365fa990bad58 Mon Sep 17 00:00:00 2001 From: ilham Date: Mon, 24 Jan 2022 13:11:13 +0700 Subject: [PATCH] fix: approve user --- src/users/users.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,