0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-13 21:42:53 +01:00

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 def initialize
if CustomWizard::Subscription.client_installed? if CustomWizard::Subscription.client_installed?
result = SubscriptionClient.find_subscriptions("discourse-custom-wizard") result = DiscourseSubscriptionClient.find_subscriptions("discourse-custom-wizard")
if result&.any? if result&.any?
ids_and_slugs = result.subscriptions.map do |subscription| ids_and_slugs = result.subscriptions.map do |subscription|
@ -175,7 +175,7 @@ class CustomWizard::Subscription
end end
def self.client_installed? def self.client_installed?
defined?(SubscriptionClient) == 'constant' && SubscriptionClient.class == Module defined?(DiscourseSubscriptionClient) == 'constant' && DiscourseSubscriptionClient.class == Module
end end
def self.subscribed? def self.subscribed?