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
shopify_app-13.4.1 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-13.4.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-13.3.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-13.2.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-13.1.1 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-13.1.0 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt
shopify_app-13.0.1 lib/generators/shopify_app/add_webhook/templates/webhook_job.rb