gitlab-org--gitlab-foss/app/workers/new_note_worker.rb
2016-01-28 13:04:42 -05:00

12 lines
250 B
Ruby

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