summaryrefslogtreecommitdiff
path: root/app/workers/create_note_diff_file_worker.rb
blob: 0af203fc3bdf9b639a50b1963a0564f47d2548d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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