summaryrefslogtreecommitdiff
path: root/lib/api/v3/todos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/todos.rb')
-rw-r--r--lib/api/v3/todos.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/v3/todos.rb b/lib/api/v3/todos.rb
index e60cb25e57b..e3b311d61cd 100644
--- a/lib/api/v3/todos.rb
+++ b/lib/api/v3/todos.rb
@@ -20,9 +20,9 @@ module API
desc 'Mark all todos as done'
delete do
status(200)
-
+
todos = TodosFinder.new(current_user, params).execute
- TodoService.new.mark_todos_as_done(todos, current_user)
+ TodoService.new.mark_todos_as_done(todos, current_user).size
end
end
end