summaryrefslogtreecommitdiff
path: root/app/api/sync/workflow/status/route.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/api/sync/workflow/status/route.ts')
-rw-r--r--app/api/sync/workflow/status/route.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/api/sync/workflow/status/route.ts b/app/api/sync/workflow/status/route.ts
index a4c5d1d0..1274f049 100644
--- a/app/api/sync/workflow/status/route.ts
+++ b/app/api/sync/workflow/status/route.ts
@@ -12,10 +12,10 @@ export async function GET(request: NextRequest) {
}
const { searchParams } = new URL(request.url)
- const contractId = searchParams.get('contractId')
+ const projectId = searchParams.get('projectId')
const targetSystem = searchParams.get('targetSystem') || 'SWP'
- if (!contractId) {
+ if (!projectId) {
return NextResponse.json(
{ error: 'Contract ID is required' },
{ status: 400 }
@@ -23,7 +23,7 @@ export async function GET(request: NextRequest) {
}
const status = await workflowService.getWorkflowStatus(
- Number(contractId),
+ Number(projectId),
targetSystem
)