Fixed route bug

This commit is contained in:
Christopher
2026-01-22 13:53:53 -08:00
parent c9951caa95
commit 825c026743
+2 -2
View File
@@ -4,10 +4,10 @@ import { eq, desc, and } from 'drizzle-orm';
export async function GET(
request: Request,
{ params }: { params: { id: string } }
{ params }: { params: Promise<{ id: string }> }
) {
try {
const { id } = params;
const { id } = await params;
// Fetch the main post
const post = await db.query.posts.findFirst({