Sha256: 7cd3cb9d4146df26e8ed91f261ebe1d3332386189c2f3590df49b7f290d44de0

Contents?: true

Size: 319 Bytes

Versions: 47

Compression:

Stored size: 319 Bytes

Contents

class <%= @job_class_name %> < ActiveJob::Base
  def perform(shop_domain:, webhook:)
    shop = Shop.find_by(shopify_domain: shop_domain)

    if shop.nil?
      logger.error("#{self.class} failed: cannot find shop with domain '#{shop_domain}'")
      return
    end

    shop.with_shopify_session do
    end
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
ruby_shopify_app-1.3.3 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
ruby_shopify_app-1.3.2 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
ruby_shopify_app-1.3.1 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
ruby_shopify_app-1.3.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
ruby_shopify_app-1.2.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
ruby_shopify_app-1.1.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
ruby_shopify_app-1.0.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-18.1.3 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-18.1.2 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-18.1.1 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-18.1.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-18.0.4 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-18.0.3 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-18.0.2 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-18.0.1 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-18.0.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-17.2.1 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-17.2.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-17.1.1 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-17.1.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt