fix: update parameter type in POST function to use Promise for id

This commit is contained in:
Nils-Johan Gynther
2026-04-15 19:53:15 +02:00
parent c20391bf2a
commit 8efd9f6e1e
+1 -1
View File
@@ -4,7 +4,7 @@ const API_BASE = process.env.NEXT_PUBLIC_API_URL_INTERNAL || 'http://recipe-api:
export async function POST( export async function POST(
request: NextRequest, request: NextRequest,
{ params }: { params: { id: string } }, { params }: { params: Promise<{ id: string }> },
) { ) {
const { id } = await params; const { id } = await params;
const body = await request.text(); const body = await request.text();