Class: ShopifyApp::WebhooksManagerJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/shopify_app/jobs/webhooks_manager_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(shop_domain:, shop_token:) ⇒ Object



9
10
11
12
13
# File 'lib/shopify_app/jobs/webhooks_manager_job.rb', line 9

def perform(shop_domain:, shop_token:, **)
  ShopifyAPI::Auth::Session.temp(shop: shop_domain, access_token: shop_token) do |session|
    WebhooksManager.create_webhooks(session: session)
  end
end