Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezryr authored and ccatherinetan committed Sep 30, 2024
1 parent 5df8089 commit 923fbae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/supabase/queries/plantSeasonality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import supabase from '../createClient';
export async function getPlantSeasonality(
input_state: string,
): Promise<Plant[]> {
const { data, error } = await supabase.rpc('get_plant_seasonality', {
input_state,
});
const { data, error } = await supabase
.from('plant_seasonality')
.select('*')
.eq('state', input_state);
if (error)
throw new Error(`Error fetching plant seasonality: ${error.message}`);
return data;
Expand Down

0 comments on commit 923fbae

Please sign in to comment.