diff options
Diffstat (limited to 'app/api/sync/config/route.ts')
| -rw-r--r-- | app/api/sync/config/route.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/api/sync/config/route.ts b/app/api/sync/config/route.ts index db5d17ca..2e9a073a 100644 --- a/app/api/sync/config/route.ts +++ b/app/api/sync/config/route.ts @@ -6,10 +6,10 @@ import { authOptions } from "@/app/api/auth/[...nextauth]/route" export async function GET(request: NextRequest) { try { const { searchParams } = new URL(request.url) - const projectId = searchParams.get('projectId') + const vendorId = searchParams.get('vendorId') const targetSystem = searchParams.get('targetSystem') || 'SHI' - if (!projectId) { + if (!vendorId) { return NextResponse.json( { error: 'Contract ID is required' }, { status: 400 } @@ -17,7 +17,7 @@ export async function GET(request: NextRequest) { } const config = await syncService.getSyncConfig( - parseInt(projectId), + parseInt(vendorId), targetSystem ) @@ -65,7 +65,7 @@ export async function POST(request: NextRequest) { } await syncService.upsertSyncConfig({ - projectId, + vendorId, targetSystem, endpointUrl, authToken, |
