fix: filter by supperior

This commit is contained in:
ilham 2021-12-30 22:54:45 +07:00
parent 1886ef160c
commit faad1b6ba7

View File

@ -149,11 +149,11 @@ export class UsersService {
}); });
} }
if(type){ if (type) {
if(type == 'partner'){ if (type == 'partner') {
baseQuery.where('user.partner_id is not null') baseQuery.where('user.partner_id is not null');
} else { } else {
baseQuery.where('user.partner_id is null') baseQuery.where('user.partner_id is null');
} }
} }