Loading lib/Listeners/BeforeUserDeletedListener.php +5 −4 Original line number Diff line number Diff line Loading @@ -63,12 +63,13 @@ class BeforeUserDeletedListener implements IEventListener { $deleteShopAccount = $this->shopAccountService->getShopDeletePreference($uid); $shopUser = $this->shopAccountService->getUser($email); if ($shopUser && $this->shopAccountService->isUserOIDC($shopUser)) { if ($deleteShopAccount) { $subscriptions = $this->shopAccountService->getSubscriptions($shopUser['id'], self::PENDING_CANCEL_STATUS); foreach ($subscriptions as $subscription) { $this->shopAccountService->updateSubscriptionStatus($subscription['id'], self::CANCELLED_STATUS); } if ($shopUser && $this->shopAccountService->isUserOIDC($shopUser)) { if ($deleteShopAccount) { $this->shopAccountService->deleteUser($shopUser['id']); } else { $newEmail = $this->shopAccountService->getShopEmailPostDeletePreference($uid); Loading Loading
lib/Listeners/BeforeUserDeletedListener.php +5 −4 Original line number Diff line number Diff line Loading @@ -63,12 +63,13 @@ class BeforeUserDeletedListener implements IEventListener { $deleteShopAccount = $this->shopAccountService->getShopDeletePreference($uid); $shopUser = $this->shopAccountService->getUser($email); if ($shopUser && $this->shopAccountService->isUserOIDC($shopUser)) { if ($deleteShopAccount) { $subscriptions = $this->shopAccountService->getSubscriptions($shopUser['id'], self::PENDING_CANCEL_STATUS); foreach ($subscriptions as $subscription) { $this->shopAccountService->updateSubscriptionStatus($subscription['id'], self::CANCELLED_STATUS); } if ($shopUser && $this->shopAccountService->isUserOIDC($shopUser)) { if ($deleteShopAccount) { $this->shopAccountService->deleteUser($shopUser['id']); } else { $newEmail = $this->shopAccountService->getShopEmailPostDeletePreference($uid); Loading