Skip to content

Commit

Permalink
feat: add services clientes aprovados
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed May 6, 2022
1 parent 70e96a0 commit 176e50d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/services/get/clienteAprovar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { supabase } from 'services/supabase';

export async function getClientesApproved(confirm: boolean) {
const { data, error, status } = await supabase.rpc('busca_filtrada_usuarios', {
p_id: '',
p_name: '',
p_ocupacao: 'cliente',
p_fullname: '',
p_email: '',
p_picture: '',
p_avatar_url: '',
p_page: 0,
p_limit: 500,
p_orderby: 'name',
p_ascordsc: 'asc',
p_admin_confirmed: confirm,
});

return { data, error, status };
}

0 comments on commit 176e50d

Please sign in to comment.