debian-mirror-gitlab/app/workers/new_note_worker.rb

12 lines
247 B
Ruby
Raw Normal View History

2016-04-02 18:10:28 +05:30
class NewNoteWorker
include Sidekiq::Worker
2016-11-03 12:29:30 +05:30
include DedicatedSidekiqQueue
2016-04-02 18:10:28 +05:30
def perform(note_id, note_params)
note = Note.find(note_id)
NotificationService.new.new_note(note)
Notes::PostProcessService.new(note).execute
end
end