diff options
Diffstat (limited to 'app/api/sync/workflow')
| -rw-r--r-- | app/api/sync/workflow/action/route.ts | 6 | ||||
| -rw-r--r-- | app/api/sync/workflow/status/route.ts | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/api/sync/workflow/action/route.ts b/app/api/sync/workflow/action/route.ts index b6b1a94f..8e311c86 100644 --- a/app/api/sync/workflow/action/route.ts +++ b/app/api/sync/workflow/action/route.ts @@ -12,9 +12,9 @@ export async function POST(request: NextRequest) { } const body = await request.json() - const { contractId, targetSystem = 'SWP', action, documents } = body + const { projectId, targetSystem = 'SWP', action, documents } = body - if (!contractId || !action) { + if (!projectId || !action) { return NextResponse.json( { error: 'Contract ID and action are required' }, { status: 400 } @@ -22,7 +22,7 @@ export async function POST(request: NextRequest) { } const result = await workflowService.executeWorkflowAction( - contractId, + projectId, targetSystem, action, documents || [], 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 ) |
