class ShopifyGraphql::UpdateWebhooksJob
Public Instance Methods
perform(shop_domain:, shop_token:)
click to toggle source
# File lib/shopify_graphql/jobs/update_webhooks_job.rb, line 7 def perform(shop_domain:, shop_token:) api_version = ShopifyApp.configuration.api_version webhooks = ShopifyGraphql.configuration.webhooks ShopifyAPI::Session.temp(domain: shop_domain, token: shop_token, api_version: api_version) do manager = WebhooksManager.new(webhooks) manager.recreate_webhooks! end rescue UnauthorizedAccess, ResourceNotFound, ForbiddenAccess, PaymentRequired # Ignore end