2020-05-20 14:08:00 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PropagateIntegrationWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
feature_category :integrations
|
|
|
|
idempotent!
|
2020-06-12 08:08:56 -04:00
|
|
|
loggable_arguments 1
|
2020-05-20 14:08:00 -04:00
|
|
|
|
|
|
|
def perform(integration_id, overwrite)
|
|
|
|
Admin::PropagateIntegrationService.propagate(
|
|
|
|
integration: Service.find(integration_id),
|
|
|
|
overwrite: overwrite
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|