1
0
Fork 0

Update subscription client class

Dieser Commit ist enthalten in:
Angus McLeod 2023-06-13 19:35:12 +02:00
Ursprung e7ab0f7143
Commit 86e6945ad4

Datei anzeigen

@ -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?