Skip to content

Commit

Permalink
fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
j8seangel committed Nov 15, 2024
1 parent 40cc1cb commit 6846b55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
32 changes: 0 additions & 32 deletions src/app/casos-activos/mapa/actions.tsx

This file was deleted.

3 changes: 2 additions & 1 deletion src/app/casos-activos/solicitudes/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function parseData(data: Database['public']['Tables']['help_requests']['Row'][])
const getData = async (supabase: SupabaseClient<Database>, filters: FiltersData) => {
const query = supabase
.from('help_requests_with_assignment_count')
.select(helpDataSelectFields as '*', { count: 'exact' })
.select('*', { count: 'exact' })
.eq('type', 'necesita')
.neq('status', 'finished');

Expand All @@ -34,6 +34,7 @@ const getData = async (supabase: SupabaseClient<Database>, filters: FiltersData)
}

const { data, error } = await query.order('created_at', { ascending: false });
console.log('🚀 ~ getData ~ data:', data)

if (error) {
throw new Error('Error fetching solicita:', error);
Expand Down

0 comments on commit 6846b55

Please sign in to comment.