From 96184d5f6bf28044a539c2036ae1102157c9a529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Du=C8=9Ba?= Date: Mon, 14 Nov 2022 17:59:03 +0200 Subject: [PATCH] Fix wrong getCustomerCode method argument value --- Observer/Model/Customer/AfterSaveObserver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Observer/Model/Customer/AfterSaveObserver.php b/Observer/Model/Customer/AfterSaveObserver.php index a8ab2b8e..1508aa0c 100644 --- a/Observer/Model/Customer/AfterSaveObserver.php +++ b/Observer/Model/Customer/AfterSaveObserver.php @@ -116,7 +116,7 @@ public function execute(Observer $observer) $this->restCustomerInterface->updateCustomer($customer, null, $customer->getStoreId()); $this->cache->clean([Config::AVATAX_CACHE_TAG, Config::AVATAX_CACHE_TAG . '-' . - $this->customerHelper->getCustomerCode($customer, null, ScopeInterface::SCOPE_STORE)]); + $this->customerHelper->getCustomerCode($customer, null, $customer->getStoreId())]); } catch (AvaTaxCustomerDoesNotExistException $avaTaxCustomerDoesNotExistException) { // Ignore errors where the customer doesn't exist } catch (Exception $exception) {