summaryrefslogtreecommitdiff
path: root/lib/api/todos.rb
diff options
context:
space:
mode:
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 2a6bfa98ca4..abdb21015b7 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)
present paginate(Kaminari.paginate_array(todos)), with: Entities::Todo, current_user: current_user
end