summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorMario de la Ossa <mariodelaossa@gmail.com>2018-05-03 15:32:20 -0600
committerMario de la Ossa <mariodelaossa@gmail.com>2018-05-07 12:58:47 -0600
commit02741ca4c58c625070d06c248125b2f510ac2c0b (patch)
tree3bfc7684b2082ee73ceffc85868ef3dc2d307a21 /app/workers
parent33e78f9ebd35b4132e9f18057f517d92cbefb9cd (diff)
downloadgitlab-ce-02741ca4c58c625070d06c248125b2f510ac2c0b.tar.gz
Backport 5480-epic-notifications from EE
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/new_note_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/new_note_worker.rb b/app/workers/new_note_worker.rb
index b925741934a..67c54fbf10e 100644
--- a/app/workers/new_note_worker.rb
+++ b/app/workers/new_note_worker.rb
@@ -5,7 +5,7 @@ class NewNoteWorker
# old `NewNoteWorker` jobs (can remove later)
def perform(note_id, _params = {})
if note = Note.find_by(id: note_id)
- NotificationService.new.new_note(note) if note.can_create_notification?
+ NotificationService.new.new_note(note)
Notes::PostProcessService.new(note).execute
else
Rails.logger.error("NewNoteWorker: couldn't find note with ID=#{note_id}, skipping job")