diff --git a/apps/masterbots.ai/app/(browse)/[category]/page.tsx b/apps/masterbots.ai/app/(browse)/[category]/page.tsx index 852a04e7..1587c13b 100644 --- a/apps/masterbots.ai/app/(browse)/[category]/page.tsx +++ b/apps/masterbots.ai/app/(browse)/[category]/page.tsx @@ -15,7 +15,7 @@ export default async function CategoryPage({ if (searchParams.threadId) permanentRedirect(`${params.category}/${searchParams.threadId}`) const categories = await getCategories() - console.log(params.category) + const categoryId = categories.find( c => toSlug(c.name) === params.category )?.categoryId diff --git a/apps/masterbots.ai/app/actions.ts b/apps/masterbots.ai/app/actions.ts index 993fa8c8..f3ba0cb3 100644 --- a/apps/masterbots.ai/app/actions.ts +++ b/apps/masterbots.ai/app/actions.ts @@ -10,7 +10,6 @@ export async function getThreads({ }: { categoryId?: number }): Promise { - console.log('getThreads categoryId', categoryId) const supabase = await createSupabaseServerClient() let threadsQuery = supabase.from('thread_full').select('*') @@ -22,7 +21,6 @@ export async function getThreads({ // } const { data, error } = await threadsQuery.range(0, 19) - console.log('🤌🏻', data) if (error) return []