Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new_note_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1b3232cd36521d62fbe3d9dcc726b62d23d221a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class NewNoteWorker
  include Sidekiq::Worker

  sidekiq_options queue: :default

  def perform(note_id, note_params)
    note = Note.find(note_id)

    NotificationService.new.new_note(note)
    Notes::PostProcessService.new(note).execute
  end
end