Commit 851a0883 authored by Phil Hughes's avatar Phil Hughes

Removed todo from JSON response

Frontend doesnt use it
parent 60b40492
...@@ -5,7 +5,6 @@ class Projects::TodosController < Projects::ApplicationController ...@@ -5,7 +5,6 @@ class Projects::TodosController < Projects::ApplicationController
todo = TodoService.new.mark_todo(issuable, current_user) todo = TodoService.new.mark_todo(issuable, current_user)
render json: { render json: {
todo: todo,
count: TodosFinder.new(current_user, state: :pending).execute.count, count: TodosFinder.new(current_user, state: :pending).execute.count,
delete_path: dashboard_todo_path(todo) delete_path: dashboard_todo_path(todo)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment