Skip to content

Commit 4fc31b3

Browse files
authored
Fix the base url getting changed while calling the repair endpoint (#764)
1 parent d9b4756 commit 4fc31b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Meta/BusinessExtension/Model/MBEInstalls.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
use GuzzleHttp\Exception\GuzzleException;
2424
use Magento\Framework\Exception\LocalizedException;
25+
use Magento\Framework\UrlInterface;
2526
use Magento\Store\Model\ScopeInterface;
2627
use Magento\Store\Model\StoreManagerInterface;
2728
use Meta\BusinessExtension\Helper\CatalogConfigUpdateHelper;
@@ -342,7 +343,7 @@ public function repairCommercePartnerIntegration($storeId): bool
342343
$accessToken = $this->systemConfig->getAccessToken($storeId);
343344
$externalBusinessId = $this->systemConfig->getExternalBusinessId($storeId);
344345
$customToken = $this->apiKeyService->getCustomApiKey();
345-
$domain = $this->storeManager->getStore($storeId)->getBaseUrl();
346+
$domain = $this->storeManager->getStore($storeId)->getBaseUrl(UrlInterface::URL_TYPE_WEB);
346347
$seller_platform_type = $this->adobeConfig->getCommercePartnerSellerPlatformType();
347348
$extensionVersion = $this->systemConfig->getModuleVersion();
348349

0 commit comments

Comments
 (0)