diff options
Diffstat (limited to 'app/api/sync/trigger/route.ts')
| -rw-r--r-- | app/api/sync/trigger/route.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/api/sync/trigger/route.ts b/app/api/sync/trigger/route.ts index 3393365d..3fe58849 100644 --- a/app/api/sync/trigger/route.ts +++ b/app/api/sync/trigger/route.ts @@ -13,9 +13,9 @@ export async function POST(request: NextRequest) { } const body = await request.json() - const { contractId, targetSystem = 'SHI' } = body + const { projectId, targetSystem = 'SHI' } = body - if (!contractId) { + if (!projectId) { return NextResponse.json( { error: 'Contract ID is required' }, { status: 400 } @@ -23,7 +23,7 @@ export async function POST(request: NextRequest) { } const result = await syncService.syncToExternalSystem( - contractId, + projectId, targetSystem, true // manual trigger ) |
