Sha256: 1f250adf26c5a3611a78fd8799614b1c98e6f951e3cf1a5889fb0672a3f0d615
Contents?: true
Size: 556 Bytes
Versions: 22
Compression:
Stored size: 556 Bytes
Contents
class CustomersDataRequestJob < ActiveJob::Base extend ShopifyAPI::Webhooks::Handler class << self def handle(topic:, shop:, body:) perform_later(topic: topic, shop_domain: shop, webhook: body) end end def perform(topic:, 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}'") raise ActiveRecord::RecordNotFound, "Shop Not Found" end shop.with_shopify_session do end end end
Version data entries
22 entries across 22 versions & 1 rubygems