There was an error while loading. Please reload this page.
1 parent 0411efd commit f1d03cfCopy full SHA for f1d03cf
1 file changed
app/next-client-app/app/api/download/[scan_report_id]/[file_id]/route.ts
@@ -4,10 +4,10 @@ import { options as authOptions } from "@/auth/options";
4
5
export async function GET(
6
request: NextRequest,
7
- { params }: { params: { scan_report_id: string; file_id: string } },
+ { params }: { params: Promise<{ scan_report_id: string; file_id: string }> },
8
) {
9
try {
10
- const { scan_report_id, file_id } = params;
+ const { scan_report_id, file_id } = await params;
11
12
// Get the session for authentication
13
const session = await getServerSession(authOptions);
0 commit comments