From f0c4f5df89ac1cd8ff15ef0523143eb91f2175ab Mon Sep 17 00:00:00 2001 From: Sosokker Date: Thu, 7 Nov 2024 03:27:02 +0700 Subject: [PATCH] remove: remove getBusinessByUserId with * --- src/lib/data/businessQuery.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/lib/data/businessQuery.ts b/src/lib/data/businessQuery.ts index e8941b3..db66d43 100644 --- a/src/lib/data/businessQuery.ts +++ b/src/lib/data/businessQuery.ts @@ -18,17 +18,6 @@ export const getAllBusinesses = (client: SupabaseClient) => { `); }; -export async function getBusinessByUserId(client: SupabaseClient, userId: string) { - const { data, error } = await client.from("business").select("*").eq("user_id", userId); - - if (error) { - console.error("Error fetching business ID:", error); - return null; - } - - return data; -} - export const getBusinessByName = ( client: SupabaseClient, params: { businessName?: string | null; single?: boolean } = { single: false }