diff options
Diffstat (limited to 'lib/api/v3/todos.rb')
-rw-r--r-- | lib/api/v3/todos.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/v3/todos.rb b/lib/api/v3/todos.rb index e3b311d61cd..3e2c61f6dbd 100644 --- a/lib/api/v3/todos.rb +++ b/lib/api/v3/todos.rb @@ -11,10 +11,10 @@ module API requires :id, type: Integer, desc: 'The ID of the todo being marked as done' end delete ':id' do + TodoService.new.mark_todos_as_done_by_ids(params[:id], current_user) todo = current_user.todos.find(params[:id]) - TodoService.new.mark_todos_as_done([todo], current_user) - present todo.reload, with: ::API::Entities::Todo, current_user: current_user + present todo, with: ::API::Entities::Todo, current_user: current_user end desc 'Mark all todos as done' |