fix: filter by supperior
This commit is contained in:
		| @@ -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'); | ||||
|       } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user