debian-mirror-gitlab/app/workers/propagate_integration_worker.rb

15 lines
358 B
Ruby
Raw Normal View History

2020-06-23 00:09:42 +05:30
# frozen_string_literal: true
class PropagateIntegrationWorker
include ApplicationWorker
feature_category :integrations
idempotent!
loggable_arguments 1
2020-11-24 15:15:51 +05:30
# Keep overwrite parameter for backwards compatibility.
def perform(integration_id, overwrite = nil)
Admin::PropagateIntegrationService.propagate(Service.find(integration_id))
2020-06-23 00:09:42 +05:30
end
end