Skip to content

Commit

Permalink
fix: build error caused by incorrect type on dynamic route handler
Browse files Browse the repository at this point in the history
  • Loading branch information
listlessbird committed Nov 15, 2024
1 parent fd8f358 commit a54be8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/src/app/api/progress/[id]/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ProgressUpdate } from "@/lib/send-progress";
import { NextRequest, NextResponse } from "next/server";
import { z } from "zod";

Expand All @@ -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();
Expand Down

0 comments on commit a54be8d

Please sign in to comment.