Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 01:10:28 +01:00
Update subscription client class
Dieser Commit ist enthalten in:
Ursprung
e7ab0f7143
Commit
86e6945ad4
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -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?
|
||||||
|
|
Laden …
In neuem Issue referenzieren