summaryrefslogtreecommitdiff
path: root/app/workers/propagate_integration_worker.rb
blob: 68e38386372b76017e98eca547a79c37a64d6215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class PropagateIntegrationWorker
  include ApplicationWorker

  feature_category :integrations
  idempotent!
  loggable_arguments 1

  # Keep overwrite parameter for backwards compatibility.
  def perform(integration_id, overwrite = nil)
    Admin::PropagateIntegrationService.propagate(Service.find(integration_id))
  end
end