Sha256: b97458dd9ec4aa1ceda0826e65a0375eb379621b2419a3bac001726dce2e6c26
Contents?: true
Size: 546 Bytes
Versions: 22
Compression:
Stored size: 546 Bytes
Contents
class ShopRedactJob < 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