diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-19 02:53:22 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-20 17:12:05 +0300 |
commit | ce78813c2abb8e65739a0a95d8044e3dca1bfbe6 (patch) | |
tree | bd11d916e50120c2f048783fa352bcfa352d4a5b /app/services/notes/create_service.rb | |
parent | a57bf9bd39816cebec5da3da35a1aabbf7462069 (diff) |
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.rb | 1 |
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 |