Sha256: 3b9065967866e8e06a0d79d73b16f61d465c27e0f74374e5da1d3ca2b0449153

Contents?: true

Size: 467 Bytes

Versions: 29

Compression:

Stored size: 467 Bytes

Contents

module ShopifyApp
  class WebhooksManagerJob < ActiveJob::Base

    queue_as do
      ShopifyApp.configuration.webhooks_manager_queue_name
    end

    def perform(shop_domain:, shop_token:, webhooks:)
      api_version = ShopifyApp.configuration.api_version
      ShopifyAPI::Session.temp(domain: shop_domain, token: shop_token, api_version: api_version) do
        manager = WebhooksManager.new(webhooks)
        manager.create_webhooks
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
shopify_app-13.0.0 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-12.0.7 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-12.0.6 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-12.0.5 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-12.0.4 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-12.0.3 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-12.0.2 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-12.0.1 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-12.0.0 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.7.1 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.7.0 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.6.0 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.5.1 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.5.0 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.4.0 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.3.2 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.3.1 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.3.0 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.2.0 lib/shopify_app/jobs/webhooks_manager_job.rb
shopify_app-11.1.0 lib/shopify_app/jobs/webhooks_manager_job.rb