Skip to content

Commit f1d03cf

Browse files
committed
Fix build
1 parent 0411efd commit f1d03cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • app/next-client-app/app/api/download/[scan_report_id]/[file_id]

app/next-client-app/app/api/download/[scan_report_id]/[file_id]/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { options as authOptions } from "@/auth/options";
44

55
export async function GET(
66
request: NextRequest,
7-
{ params }: { params: { scan_report_id: string; file_id: string } },
7+
{ params }: { params: Promise<{ scan_report_id: string; file_id: string }> },
88
) {
99
try {
10-
const { scan_report_id, file_id } = params;
10+
const { scan_report_id, file_id } = await params;
1111

1212
// Get the session for authentication
1313
const session = await getServerSession(authOptions);

0 commit comments

Comments
 (0)