remove redundant sub client check
Dieser Commit ist enthalten in:
Ursprung
7f245d6a59
Commit
a8af37b334
1 geänderte Dateien mit 14 neuen und 20 gelöschten Zeilen
|
@ -105,7 +105,6 @@ class CustomWizard::Subscription
|
|||
:product_slug
|
||||
|
||||
def initialize
|
||||
if CustomWizard::Subscription.client_installed?
|
||||
result = DiscourseSubscriptionClient.find_subscriptions("discourse-custom-wizard")
|
||||
|
||||
if result&.any?
|
||||
|
@ -123,7 +122,6 @@ class CustomWizard::Subscription
|
|||
@product_id = id_and_slug[:id]
|
||||
@product_slug = id_and_slug[:slug]
|
||||
end
|
||||
end
|
||||
|
||||
@product_slug ||= ENV["CUSTOM_WIZARD_PRODUCT_SLUG"]
|
||||
end
|
||||
|
@ -176,10 +174,6 @@ class CustomWizard::Subscription
|
|||
product_slug === "community"
|
||||
end
|
||||
|
||||
def self.client_installed?
|
||||
defined?(DiscourseSubscriptionClient) == 'constant' && DiscourseSubscriptionClient.class == Module
|
||||
end
|
||||
|
||||
def self.subscribed?
|
||||
new.subscribed?
|
||||
end
|
||||
|
|
Laden …
In neuem Issue referenzieren