chore: add type hint to projectQuery

This commit is contained in:
Sosokker 2024-11-14 12:06:46 +07:00
parent 92fa9f5722
commit 868954a6fd
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import { SupabaseClient } from "@supabase/supabase-js"; import { SupabaseClient } from "@supabase/supabase-js";
import { ProjectCardProps } from "@/types/ProjectCard"; import { ProjectCardProps } from "@/types/ProjectCard";
import { Database } from "@/types/database.types";
async function getTopProjects(client: SupabaseClient, numberOfRecords: number = 4) { async function getTopProjects(client: SupabaseClient, numberOfRecords: number = 4) {
try { try {
@ -205,7 +206,7 @@ const getProjectByBusinessId = (client: SupabaseClient, businessIds: string[]) =
.in("business_id", businessIds); .in("business_id", businessIds);
}; };
const getProjectByUserId = (client: SupabaseClient, userId: string) => { const getProjectByUserId = (client: SupabaseClient<Database>, userId: string) => {
return client return client
.from("project") .from("project")
.select( .select(

Binary file not shown.