fix: Update route handler params for Next.js 16 async params
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s

This commit is contained in:
Ahmed Darrazi 2025-12-09 14:30:48 +01:00
parent 6ce68b9a2f
commit b6d69295aa

View File

@ -4,7 +4,7 @@ import { getUserAuth } from '@/lib/auth/utils';
export async function GET(
request: NextRequest,
{ params }: { params: { jobId: string } }
{ params }: { params: Promise<{ jobId: string }> }
) {
try {
const { session } = await getUserAuth();
@ -13,7 +13,7 @@ export async function GET(
return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
}
const jobId = params.jobId;
const { jobId } = await params;
const job = await syncQueue.getJob(jobId);
if (!job) {