From dec37e2d6376c33522dc26be96439558a8785d7d Mon Sep 17 00:00:00 2001 From: Sergey Gut Date: Sat, 5 Feb 2022 17:29:06 +0300 Subject: [PATCH] Fix add-on removal --- Setup.php | 2 +- addon.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Setup.php b/Setup.php index 5fce703..a1053b3 100644 --- a/Setup.php +++ b/Setup.php @@ -34,7 +34,7 @@ public function installStep1() public function uninstallStep1() { /** @var ConnectedAccountProvider $provider */ - $provider = $this->app->em()->findOne('XF:ConnectedAccountProvider', $this->getProviderField('provider_id')); + $provider = $this->app->em()->find('XF:ConnectedAccountProvider', $this->getProviderField('provider_id')); if (!$provider) { // Damn. Something already removed our record. diff --git a/addon.json b/addon.json index f9a2fa0..fc733b1 100644 --- a/addon.json +++ b/addon.json @@ -2,8 +2,8 @@ "legacy_addon_id": "", "title": "[HLModerators] Connected Account", "description": "Implements the OAuth protocol via HLMod OAuth Provider", - "version_id": 1000070, - "version_string": "1.0.0", + "version_id": 1000170, + "version_string": "1.0.1", "dev": "HLMod", "dev_url": "https://hlmod.ru/?utm_source=xenforo_acp&utm_campaign=connected_account", "faq_url": "",