Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaco Guzman <pacoguzmanp@gmail.com>2016-07-08 19:42:47 +0300
committerPaco Guzman <pacoguzmanp@gmail.com>2016-08-12 18:40:03 +0300
commit1f2253545ba7a902212bace29f144a2246eeedab (patch)
treee6575b0b351bf6f226f6eafa2b016cd31200943a /lib/api/todos.rb
parentec73abcd782ba9be95db62ecede09db7fe783aab (diff)
Use cache for todos counter calling TodoService
Diffstat (limited to 'lib/api/todos.rb')
-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