gitlab-org--gitlab-foss/app/workers/create_note_diff_file_worke...

16 lines
313 B
Ruby

# frozen_string_literal: true
class CreateNoteDiffFileWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
sidekiq_options retry: 3
feature_category :code_review
def perform(diff_note_id)
diff_note = DiffNote.find(diff_note_id)
diff_note.create_diff_file
end
end