Sha256: 3fd9e62b4c3f55bad161dadb01781038e61a249f9175253f8bdc076bba934d4a

Contents?: true

Size: 255 Bytes

Versions: 7

Compression:

Stored size: 255 Bytes

Contents

namespace :webhooks do
  desc 'Synchronise webhooks across all installed shops.'
  task sync: :environment do
    DiscoApp::Shop.installed.has_active_shopify_plan.each do |shop|
      DiscoApp::SynchroniseWebhooksJob.perform_later(shop)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.17.0 lib/tasks/webhooks.rake
disco_app-0.18.0 lib/tasks/webhooks.rake
disco_app-0.18.2 lib/tasks/webhooks.rake
disco_app-0.18.3 lib/tasks/webhooks.rake
disco_app-0.18.6 lib/tasks/webhooks.rake
disco_app-0.18.4 lib/tasks/webhooks.rake
disco_app-0.18.1 lib/tasks/webhooks.rake