diff options
author | Josh Frye <joshfng@gmail.com> | 2016-01-27 18:59:16 +0300 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-01-28 21:04:42 +0300 |
commit | f9218898ece79275c585da3aeb932b7ede409776 (patch) | |
tree | 4c0256556ac7711adf86012ce1ea2db769a94b79 /app/workers/new_note_worker.rb | |
parent | 88e16c3d19cbdf4452af713ecc07989dbd3c35f0 (diff) |
[WIP] Background process note logic for #3948
Diffstat (limited to 'app/workers/new_note_worker.rb')
-rw-r--r-- | app/workers/new_note_worker.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/workers/new_note_worker.rb b/app/workers/new_note_worker.rb new file mode 100644 index 00000000000..1b3232cd365 --- /dev/null +++ b/app/workers/new_note_worker.rb @@ -0,0 +1,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 |