diff --git a/src/users/users.service.ts b/src/users/users.service.ts index 5ad94db..e5fcb5a 100644 --- a/src/users/users.service.ts +++ b/src/users/users.service.ts @@ -149,11 +149,11 @@ export class UsersService { }); } - if(type){ - if(type == 'partner'){ - baseQuery.where('user.partner_id is not null') + if (type) { + if (type == 'partner') { + baseQuery.where('user.partner_id is not null'); } else { - baseQuery.where('user.partner_id is null') + baseQuery.where('user.partner_id is null'); } }