mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 21:44: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 { 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.
Loading…
Reference in New Issue
Block a user