fix: Update route handler params for Next.js 16 async params
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s
This commit is contained in:
parent
6ce68b9a2f
commit
b6d69295aa
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user