From fcfdbc445800c39f1ed7eab9a243854604eefef1 Mon Sep 17 00:00:00 2001 From: suryac Date: Tue, 18 Aug 2026 15:54:27 +0530 Subject: [PATCH] fix:pipeline for neareast store --- src/api/config.ts | 2 +- src/components/maps/NearestStoresMap.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/config.ts b/src/api/config.ts index f21fd1a..72689ea 100644 --- a/src/api/config.ts +++ b/src/api/config.ts @@ -253,7 +253,7 @@ export const SALES_REPORT_SO_NAMES = [ // --- Pipeline Endpoints --- export const PIPELINE = { endpoints: { - nearestStores: '/api/p/krishna-group/v1/nearest-stores', + nearestStores: '/api/papi2/nearest-stores', dailySalesReport: '/api/papi2/daily-sales-report', productiveCallSummary: '/api/papi2/productive-call-summary', salesOfficers: '/api/papi2/sales-officers' diff --git a/src/components/maps/NearestStoresMap.tsx b/src/components/maps/NearestStoresMap.tsx index 19ff54d..a6ab6ba 100644 --- a/src/components/maps/NearestStoresMap.tsx +++ b/src/components/maps/NearestStoresMap.tsx @@ -64,7 +64,11 @@ export function NearestStoresMap() { method: 'POST', headers: { 'accept': 'application/json, text/plain, */*', - 'content-type': 'application/json' + 'content-type': 'application/json', + 'groupid': '25', + 'orgid': '57', + 'templateid': '189', + 'x-pipeline-version': 'latest' }, body: JSON.stringify({ latitude: lat,