mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-20 14:34:05 +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 = (
|
export const getBusinessByName = (
|
||||||
client: SupabaseClient,
|
client: SupabaseClient,
|
||||||
params: { businessName?: string | null; single?: boolean } = { single: false }
|
params: { businessName?: string | null; single?: boolean } = { single: false }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user