diff --git a/web/src/app/api/progress/[id]/route.ts b/web/src/app/api/progress/[id]/route.ts index db93c57..baf048e 100644 --- a/web/src/app/api/progress/[id]/route.ts +++ b/web/src/app/api/progress/[id]/route.ts @@ -1,4 +1,3 @@ -import { ProgressUpdate } from "@/lib/send-progress"; import { NextRequest, NextResponse } from "next/server"; import { z } from "zod"; @@ -21,9 +20,11 @@ const progressSchema = z.object({ export async function GET( request: NextRequest, - { params }: { params: { id: string } } + { params }: { params: Promise<{ id: string }> } ) { - const generationId = (await params).id; + const reqParams = await params; + + const generationId = reqParams.id; const responseStream = new TransformStream(); const writer = responseStream.writable.getWriter();