From a8340cd3568fdffd0eed191ea2535d72296ac5b7 Mon Sep 17 00:00:00 2001 From: Sashank Balusu Date: Sun, 20 Oct 2024 14:11:50 -0700 Subject: [PATCH] lint errors --- api/supabase/queries/updateUserPlants.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/supabase/queries/updateUserPlants.ts b/api/supabase/queries/updateUserPlants.ts index 20b6a3f..283e343 100644 --- a/api/supabase/queries/updateUserPlants.ts +++ b/api/supabase/queries/updateUserPlants.ts @@ -1,4 +1,4 @@ -import { randomUUID, UUID } from 'crypto'; +import { UUID } from 'crypto'; import supabase from '../createClient'; interface FormData { @@ -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}`); }); }