0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 01:10:28 +01:00
Dieser Commit ist enthalten in:
merefield 2023-09-25 17:00:39 +01:00
Ursprung c5d8003761
Commit 1a32862fd1

Datei anzeigen

@ -1,4 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
require "discourse_subscription_client"
class CustomWizard::Subscription class CustomWizard::Subscription
PRODUCT_HIERARCHY = %w[ PRODUCT_HIERARCHY = %w[
community community
@ -105,7 +107,7 @@ class CustomWizard::Subscription
:product_slug :product_slug
def initialize def initialize
result = DiscourseSubscriptionClient.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|