Sha256: 9d988c06804180da3e8a32a97a34f84caa67ca4dbb1bbd931128df245f4373a9
Contents?: true
Size: 551 Bytes
Versions: 22
Compression:
Stored size: 551 Bytes
Contents
class CustomersRedactJob < 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