diff options
Diffstat (limited to 'app/services/task_service.rb')
-rw-r--r-- | app/services/task_service.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/services/task_service.rb b/app/services/task_service.rb index e58974a9b38..57f68c61d00 100644 --- a/app/services/task_service.rb +++ b/app/services/task_service.rb @@ -54,6 +54,17 @@ class TaskService end end + # When update a note we should: + # + # * mark all pending tasks related to the noteable for the current user as done + # + def update_note(note, current_user) + # Skip system notes, like status changes and cross-references + unless note.system + mark_as_done(note.noteable, current_user) + end + end + private def create_task(project, target, author, user, action) |