diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-07-08 18:42:47 +0200 |
---|---|---|
committer | Paco Guzman <pacoguzmanp@gmail.com> | 2016-08-12 17:40:03 +0200 |
commit | 1f2253545ba7a902212bace29f144a2246eeedab (patch) | |
tree | e6575b0b351bf6f226f6eafa2b016cd31200943a /lib/api | |
parent | ec73abcd782ba9be95db62ecede09db7fe783aab (diff) | |
download | gitlab-ce-1f2253545ba7a902212bace29f144a2246eeedab.tar.gz |
Use cache for todos counter calling TodoService
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/todos.rb | 2 |
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 |