diff options
Diffstat (limited to 'app/api/sync/workflow/action/route.ts')
| -rw-r--r-- | app/api/sync/workflow/action/route.ts | 6 |
1 files changed, 3 insertions, 3 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 || [], |
