Class: NewNoteWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/new_note_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(note_id, note_params) ⇒ Object


6
7
8
9
10
11
# File 'app/workers/new_note_worker.rb', line 6

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

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