fix: approve user
This commit is contained in:
parent
173702891e
commit
69c478a7c9
|
@ -308,7 +308,7 @@ export class UsersService {
|
||||||
const baseQuery = this.usersRepository
|
const baseQuery = this.usersRepository
|
||||||
.createQueryBuilder('user')
|
.createQueryBuilder('user')
|
||||||
.where(
|
.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,
|
id: superrior.userId,
|
||||||
status: superrior.userId,
|
status: superrior.userId,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user