mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 13:34:06 +01:00
chore: add type hint to projectQuery
This commit is contained in:
parent
92fa9f5722
commit
868954a6fd
@ -1,5 +1,6 @@
|
||||
import { SupabaseClient } from "@supabase/supabase-js";
|
||||
import { ProjectCardProps } from "@/types/ProjectCard";
|
||||
import { Database } from "@/types/database.types";
|
||||
|
||||
async function getTopProjects(client: SupabaseClient, numberOfRecords: number = 4) {
|
||||
try {
|
||||
@ -205,7 +206,7 @@ const getProjectByBusinessId = (client: SupabaseClient, businessIds: string[]) =
|
||||
.in("business_id", businessIds);
|
||||
};
|
||||
|
||||
const getProjectByUserId = (client: SupabaseClient, userId: string) => {
|
||||
const getProjectByUserId = (client: SupabaseClient<Database>, userId: string) => {
|
||||
return client
|
||||
.from("project")
|
||||
.select(
|
||||
|
||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user