summaryrefslogtreecommitdiff
path: root/app/services/notes/create_service.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-18 21:53:22 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-20 12:12:05 -0200
commitce78813c2abb8e65739a0a95d8044e3dca1bfbe6 (patch)
treebd11d916e50120c2f048783fa352bcfa352d4a5b /app/services/notes/create_service.rb
parenta57bf9bd39816cebec5da3da35a1aabbf7462069 (diff)
downloadgitlab-ce-ce78813c2abb8e65739a0a95d8044e3dca1bfbe6.tar.gz
Create or mark task pending as soon the action happens
Diffstat (limited to 'app/services/notes/create_service.rb')
-rw-r--r--app/services/notes/create_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/notes/create_service.rb b/app/services/notes/create_service.rb
index 8d9661167b5..dbbf9e63164 100644
--- a/app/services/notes/create_service.rb
+++ b/app/services/notes/create_service.rb
@@ -8,6 +8,7 @@ module Notes
if note.save
# Finish the harder work in the background
NewNoteWorker.perform_in(2.seconds, note.id, params)
+ TaskService.new.new_note(note, current_user)
end
note