diff options
Diffstat (limited to 'app/graphql/mutations/todos/mark_all_done.rb')
-rw-r--r-- | app/graphql/mutations/todos/mark_all_done.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/graphql/mutations/todos/mark_all_done.rb b/app/graphql/mutations/todos/mark_all_done.rb index 5694985717c..d30d1bcbcf0 100644 --- a/app/graphql/mutations/todos/mark_all_done.rb +++ b/app/graphql/mutations/todos/mark_all_done.rb @@ -28,7 +28,9 @@ module Mutations def mark_all_todos_done return [] unless current_user - TodoService.new.mark_all_todos_as_done_by_user(current_user) + todos = TodosFinder.new(current_user).execute + + TodoService.new.resolve_todos(todos, current_user, resolved_by_action: :api_all_done) end end end |