2019-10-14 11:06:07 -04:00
|
|
|
# frozen_string_literal: true
|
2019-02-20 10:35:57 -05:00
|
|
|
|
|
|
|
class MigrateExternalDiffsWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2019-10-18 07:11:44 -04:00
|
|
|
feature_category :source_code_management
|
|
|
|
|
2019-02-20 10:35:57 -05:00
|
|
|
def perform(merge_request_diff_id)
|
|
|
|
diff = MergeRequestDiff.find_by_id(merge_request_diff_id)
|
|
|
|
return unless diff
|
|
|
|
|
|
|
|
MergeRequests::MigrateExternalDiffsService.new(diff).execute
|
|
|
|
end
|
|
|
|
end
|