mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 21:44:06 +01:00
remove: remove getBusinessByUserId with *
This commit is contained in:
parent
9db518cb6b
commit
f0c4f5df89
@ -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 }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user