Skip to content

Commit 24f5d05

Browse files
committed
remove check for ProcessAPI V1 / V2 in processingGetMap
1 parent b5fdd90 commit 24f5d05

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/layer/processing.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ export async function processingGetMap(
170170
shServiceHostname: string,
171171
payload: ProcessingPayload,
172172
reqConfig: RequestConfiguration,
173-
useV2?: boolean,
174173
): Promise<Blob> {
175174
const authToken = reqConfig && reqConfig.authToken ? reqConfig.authToken : getAuthToken();
176175
if (!authToken) {
@@ -187,10 +186,6 @@ export async function processingGetMap(
187186
responseType: typeof window !== 'undefined' && window.Blob ? 'blob' : 'arraybuffer',
188187
...getAxiosReqParams(reqConfig, CACHE_CONFIG_30MIN),
189188
};
190-
const response = await axios.post(
191-
`${shServiceHostname}api/${useV2 ? 'v2' : 'v1'}/process`,
192-
payload,
193-
requestConfig,
194-
);
189+
const response = await axios.post(`${shServiceHostname}api/v1/process`, payload, requestConfig);
195190
return response.data;
196191
}

0 commit comments

Comments
 (0)