From 8efd9f6e1e71bd842d18fc814ae6851aa6b04fc9 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Wed, 15 Apr 2026 19:53:15 +0200 Subject: [PATCH] fix: update parameter type in POST function to use Promise for id --- frontend/app/api/recipes/[id]/image/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/api/recipes/[id]/image/route.ts b/frontend/app/api/recipes/[id]/image/route.ts index 357c6d2d..32740840 100644 --- a/frontend/app/api/recipes/[id]/image/route.ts +++ b/frontend/app/api/recipes/[id]/image/route.ts @@ -4,7 +4,7 @@ const API_BASE = process.env.NEXT_PUBLIC_API_URL_INTERNAL || 'http://recipe-api: export async function POST( request: NextRequest, - { params }: { params: { id: string } }, + { params }: { params: Promise<{ id: string }> }, ) { const { id } = await params; const body = await request.text();