From 92eda21e45d902663052575aaa4c4f80bfa2faea Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 4 Aug 2025 09:36:14 +0000 Subject: (대표님) 벤더 문서 변경사항, data-table 변경, sync 변경 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/sync/import/route.ts | 6 +++--- app/api/sync/import/status/route.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'app/api/sync/import') diff --git a/app/api/sync/import/route.ts b/app/api/sync/import/route.ts index a6496578..f32a99e2 100644 --- a/app/api/sync/import/route.ts +++ b/app/api/sync/import/route.ts @@ -11,9 +11,9 @@ export async function POST(request: NextRequest) { } const body = await request.json() - const { contractId, sourceSystem = 'DOLCE' } = body + const { projectId, sourceSystem = 'DOLCE' } = body - if (!contractId) { + if (!projectId) { return NextResponse.json( { error: 'Contract ID is required' }, { status: 400 } @@ -21,7 +21,7 @@ export async function POST(request: NextRequest) { } const result = await importService.importFromExternalSystem( - contractId, + projectId, sourceSystem ) diff --git a/app/api/sync/import/status/route.ts b/app/api/sync/import/status/route.ts index c5b4b0bd..ddb202e4 100644 --- a/app/api/sync/import/status/route.ts +++ b/app/api/sync/import/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 sourceSystem = searchParams.get('sourceSystem') || 'DOLCE' - 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 importService.getImportStatus( - Number(contractId), + Number(projectId), sourceSystem ) -- cgit v1.2.3