diff --git a/src/api/post.ts b/src/api/post.ts index e9c8a84..db0b998 100644 --- a/src/api/post.ts +++ b/src/api/post.ts @@ -17,12 +17,12 @@ const parseJsonField = (value: unknown, defaultValue: T): T => { }; export const fetchPosts = async ( - category?: string, + category?: string ): Promise => { let query = supabase .from("post") .select( - "id, category, title, recruitment_deadline, progress_method, duration, position, tech_stack, author, created_at, status", + "id, category, title, recruitment_deadline, progress_method, duration, position, tech_stack, author, created_at, status" ) .eq("status", POST_STATUS.PUBLISH); @@ -62,7 +62,7 @@ export const fetchRecentPosts = async (): Promise => { const { data, error } = await supabase .from("post") .select( - "id, category, title, recruitment_deadline, progress_method, duration, position, tech_stack, author, created_at, status", + "id, category, title, recruitment_deadline, progress_method, duration, position, tech_stack, author, created_at, status" ) .eq("status", POST_STATUS.PUBLISH) .order("created_at", { ascending: false })