From 7cf4b9fdd61e0e75ed8c2bec857cfc2d7603486d Mon Sep 17 00:00:00 2001 From: Emerson Laurentino Date: Thu, 2 Jan 2025 11:39:23 -0300 Subject: [PATCH] refactor(offer): remove workspace parameter from URL in production --- packages/core/src/sdk/offer/fetcher.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/core/src/sdk/offer/fetcher.ts b/packages/core/src/sdk/offer/fetcher.ts index 2fc537155a..1618d1dd34 100644 --- a/packages/core/src/sdk/offer/fetcher.ts +++ b/packages/core/src/sdk/offer/fetcher.ts @@ -9,10 +9,6 @@ export function getUrl(skuId: string) { : `https://${api.storeId}.${api.environment}.com.br` const url = new URL(`${base}/api/intelligent-search/product_search`) url.searchParams.append('query', `sku.id:${skuId}`) - if (IS_PROD) { - url.searchParams.append('workspace', 'chrs') - } - return url.toString() }