Sha256: bfa90ddaf7ef3efb9e8850c3b44fb403bb5aed43d7a704ba5da8369b6fc297a4

Contents?: true

Size: 379 Bytes

Versions: 3

Compression:

Stored size: 379 Bytes

Contents

module ShopifyApp
  class ScripttagsManagerJob < ActiveJob::Base

    queue_as do
      ShopifyApp.configuration.webhooks_manager_queue_name
    end

    def perform(shop_domain:, shop_token:, scripttags:)
      ShopifyAPI::Session.temp(shop_domain, shop_token) do
        manager = ScripttagsManager.new(scripttags)
        manager.create_scripttags
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shopify_app-7.2.0 lib/shopify_app/scripttags_manager_job.rb
shopify_app-7.1.1 lib/shopify_app/scripttags_manager_job.rb
shopify_app-7.1.0 lib/shopify_app/scripttags_manager_job.rb