Skip to content

Commit

Permalink
fix: do not filter by necesita when fetching a help request
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinx0 committed Nov 8, 2024
1 parent 3b9c68e commit b13fc8e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lib/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ export const helpRequestService = {
},
async getOne(id: number) {
const supabase = await getSupabaseClient();
const { data, error } = await supabase
.from('help_requests')
.select('*')
.eq('id', id)
.eq('type', 'necesita')
.single();
const { data, error } = await supabase.from('help_requests').select('*').eq('id', id).single();
if (error) throw error;
return data;
},
Expand Down

0 comments on commit b13fc8e

Please sign in to comment.