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

class PropagateIntegrationWorker
  include ApplicationWorker

  feature_category :integrations
  idempotent!
  loggable_arguments 1

  def perform(integration_id, overwrite)
    Admin::PropagateIntegrationService.propagate(
      integration: Service.find(integration_id),
      overwrite: overwrite
    )
  end
end