Skip to content

Commit

Permalink
Code clean
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrsKondratjevs committed Oct 11, 2021
1 parent 8b20e83 commit 2df32fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Model/Resolver/GetStores.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function resolve(
throw new GraphQlInputException(__('No in-delivery support for provided country. Please select another country.'));
}

$searchRequest = $this->getStoresBySearch($search, $country, $args);
$searchRequest = $this->getStoresBySearch($args);
}

try {
Expand Down Expand Up @@ -193,13 +193,13 @@ public function getAllStores($args) {
* @return SearchRequestInterface
* @throws LocalizedException
*/
public function getStoresBySearch($search, $country, $args) {
public function getStoresBySearch($args) {
$searchRequest = $this->searchRequest
->setScopeType(SalesChannelInterface::TYPE_WEBSITE)
->setAreaSearchTerm(sprintf(
'%s:%s',
$search,
$country
$args['search'],
$args['country']
))
->setPageSize(50)
->setScopeCode($this->storeManager->getWebsite()->getCode())
Expand Down

0 comments on commit 2df32fd

Please sign in to comment.