summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaco Guzman <pacoguzmanp@gmail.com>2016-07-08 18:42:47 +0200
committerPaco Guzman <pacoguzmanp@gmail.com>2016-08-12 17:40:03 +0200
commit1f2253545ba7a902212bace29f144a2246eeedab (patch)
treee6575b0b351bf6f226f6eafa2b016cd31200943a /lib
parentec73abcd782ba9be95db62ecede09db7fe783aab (diff)
downloadgitlab-ce-1f2253545ba7a902212bace29f144a2246eeedab.tar.gz
Use cache for todos counter calling TodoService
Diffstat (limited to 'lib')
-rw-r--r--lib/api/todos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/todos.rb b/lib/api/todos.rb
index 26c24c3baff..a90a667fafe 100644
--- a/lib/api/todos.rb
+++ b/lib/api/todos.rb
@@ -73,7 +73,7 @@ module API
#
delete do
todos = find_todos
- todos.each(&:done)
+ TodoService.new.mark_todos_as_done(todos, current_user)
todos.length
end