From 86e6945ad461339cefbf148db2ef00c9310ee03c Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 13 Jun 2023 19:35:12 +0200 Subject: [PATCH] Update subscription client class --- lib/custom_wizard/subscription.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/custom_wizard/subscription.rb b/lib/custom_wizard/subscription.rb index 6ca592f9..f7fd0624 100644 --- a/lib/custom_wizard/subscription.rb +++ b/lib/custom_wizard/subscription.rb @@ -106,7 +106,7 @@ class CustomWizard::Subscription def initialize if CustomWizard::Subscription.client_installed? - result = SubscriptionClient.find_subscriptions("discourse-custom-wizard") + result = DiscourseSubscriptionClient.find_subscriptions("discourse-custom-wizard") if result&.any? ids_and_slugs = result.subscriptions.map do |subscription| @@ -175,7 +175,7 @@ class CustomWizard::Subscription end def self.client_installed? - defined?(SubscriptionClient) == 'constant' && SubscriptionClient.class == Module + defined?(DiscourseSubscriptionClient) == 'constant' && DiscourseSubscriptionClient.class == Module end def self.subscribed?