Skip to content

Commit

Permalink
lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SashankBalusu committed Oct 26, 2024
1 parent ad2bce4 commit 4f8e04a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/supabase/queries/updateUserPlants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { randomUUID, UUID } from 'crypto';
import { UUID } from 'crypto';
import supabase from '../createClient';

interface FormData {
Expand All @@ -19,5 +19,6 @@ export async function updateUserPlants(userId: UUID, formData: FormData[]) {
date_harvested: null,
planting_type: curr['plant_type'],
});
if (error) throw new Error(`Error inserting data: ${error.message}`);
});
}

0 comments on commit 4f8e04a

Please sign in to comment.