Skip to content

Commit 4fcd557

Browse files
committed
Use new settings object in LCSCProvider
1 parent d57107e commit 4fcd557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/InfoProviderSystem/Providers/LCSCProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public function searchByKeywordsBatch(array $keywords): array
374374
// Direct detail API call for C-codes
375375
$responses[$keyword] = $this->lcscClient->request('GET', self::ENDPOINT_URL . "/product/detail", [
376376
'headers' => [
377-
'Cookie' => new Cookie('currencyCode', $this->currency)
377+
'Cookie' => new Cookie('currencyCode', $this->settings->currency)
378378
],
379379
'query' => [
380380
'productCode' => trim($keyword),
@@ -384,7 +384,7 @@ public function searchByKeywordsBatch(array $keywords): array
384384
// Search API call for other terms
385385
$responses[$keyword] = $this->lcscClient->request('GET', self::ENDPOINT_URL . "/search/global", [
386386
'headers' => [
387-
'Cookie' => new Cookie('currencyCode', $this->currency)
387+
'Cookie' => new Cookie('currencyCode', $this->settings->currency)
388388
],
389389
'query' => [
390390
'keyword' => $keyword,

0 commit comments

Comments
 (0)