From 857a0ac522836984d4d1abec90d725cff9de5f4a Mon Sep 17 00:00:00 2001 From: Stanislav Matyavin Date: Thu, 6 Jul 2023 17:33:27 +0300 Subject: [PATCH] Adding the ability to specify a store or website code instead of an identifier --- Console/Command/Sync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Console/Command/Sync.php b/Console/Command/Sync.php index 9d552aa..0f2040a 100644 --- a/Console/Command/Sync.php +++ b/Console/Command/Sync.php @@ -109,7 +109,7 @@ protected function execute( $scopeId = $this->storeManager->getWebsite($scopeId)->getId(); } if ($scope === 'stores') { - $scopeId = $this->storeManager->getWebsite($scopeId)->getId(); + $scopeId = $this->storeManager->getStore($scopeId)->getId(); } } } catch (\Exception $e) {