diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/api/sync/import/route.ts | 3 | ||||
| -rw-r--r-- | app/api/sync/import/status/route.ts | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/api/sync/import/route.ts b/app/api/sync/import/route.ts index 0a5df030..15a1a3d1 100644 --- a/app/api/sync/import/route.ts +++ b/app/api/sync/import/route.ts @@ -18,7 +18,7 @@ export async function POST(request: NextRequest) { if (!projectId) { debugError(`필수 파라미터 누락`, { projectId, sourceSystem }) return NextResponse.json( - { error: 'Contract ID is required' }, + { error: 'Project ID is required' }, { status: 400 } ) } @@ -46,7 +46,6 @@ export async function POST(request: NextRequest) { return NextResponse.json(result) } catch (error) { debugError(`DOLCE 가져오기 API 실패`, { - projectId: request.body ? 'unknown' : 'no body', error }) return NextResponse.json( diff --git a/app/api/sync/import/status/route.ts b/app/api/sync/import/status/route.ts index ddebcd19..1ee93851 100644 --- a/app/api/sync/import/status/route.ts +++ b/app/api/sync/import/status/route.ts @@ -14,6 +14,8 @@ export async function GET(request: NextRequest) { } const { searchParams } = new URL(request.url) + + // 프로젝트 아이디 받아서 dolce api 조회시 사용 const projectId = searchParams.get('projectId') const sourceSystem = searchParams.get('sourceSystem') || 'DOLCE' |
