From 12ae6fc865d91488fd0c6bc1d5a611e853882c3d Mon Sep 17 00:00:00 2001 From: Akhil Date: Wed, 12 Oct 2022 14:30:41 +0530 Subject: [PATCH] Move reassign user id to config --- lib/Service/ShopAccountService.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Service/ShopAccountService.php b/lib/Service/ShopAccountService.php index 4595ef57..7e35670e 100644 --- a/lib/Service/ShopAccountService.php +++ b/lib/Service/ShopAccountService.php @@ -20,16 +20,17 @@ class ShopAccountService { { $this->config = $config; + $this->appName = $appName; + $shopUsername = $this->config->getSystemValue('murena_shop_username'); $shopPassword = $this->config->getSystemValue('murena_shop_password'); - $this->shopUrl = $this->config->getSystemValue('murena_shop_url'); - $this->appName = $appName; + $this->shopReassignUserId = $this->config->getSystemValue('murena_shop_reassign_user_id'); + $this->shopUserUrl = $this->shopUrl . "/wp-json/wp/v2/users"; $this->shopOrdersUrl = $this->shopUrl . "/wp-json/wc/v3/orders"; $this->shopCredentials = base64_encode($shopUsername . ":" . $shopPassword); - $this->shopReassignUserId = getenv('WP_REASSIGN_USER_ID'); $this->curl = $curlService; $this->logger = $logger; } -- GitLab