summaryrefslogtreecommitdiff
path: root/app/api/sync/batches/route.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/api/sync/batches/route.ts')
-rw-r--r--app/api/sync/batches/route.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/api/sync/batches/route.ts b/app/api/sync/batches/route.ts
index a1ef8d26..7a72530d 100644
--- a/app/api/sync/batches/route.ts
+++ b/app/api/sync/batches/route.ts
@@ -4,11 +4,11 @@ import { NextRequest, NextResponse } from "next/server"
export async function GET(request: NextRequest) {
try {
const { searchParams } = new URL(request.url)
- const contractId = searchParams.get('contractId')
+ const projectId = searchParams.get('projectId')
const targetSystem = searchParams.get('targetSystem') || 'SHI'
const limit = parseInt(searchParams.get('limit') || '10')
- if (!contractId) {
+ if (!projectId) {
return NextResponse.json(
{ error: 'Contract ID is required' },
{ status: 400 }
@@ -16,7 +16,7 @@ export async function GET(request: NextRequest) {
}
const batches = await syncService.getRecentSyncBatches(
- parseInt(contractId),
+ parseInt(projectId),
targetSystem,
limit
)