summaryrefslogtreecommitdiff
path: root/app/api/sync/import
diff options
context:
space:
mode:
Diffstat (limited to 'app/api/sync/import')
-rw-r--r--app/api/sync/import/route.ts6
-rw-r--r--app/api/sync/import/status/route.ts6
2 files changed, 6 insertions, 6 deletions
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
)