summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/todos/create.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/todos/create.rb')
-rw-r--r--app/graphql/mutations/todos/create.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/graphql/mutations/todos/create.rb b/app/graphql/mutations/todos/create.rb
index ccc3d0b61e4..489d2f490ff 100644
--- a/app/graphql/mutations/todos/create.rb
+++ b/app/graphql/mutations/todos/create.rb
@@ -17,8 +17,7 @@ module Mutations
description: 'To-do item created.'
def resolve(target_id:)
- id = ::Types::GlobalIDType[Todoable].coerce_isolated_input(target_id)
- target = authorized_find!(id)
+ target = authorized_find!(target_id)
todo = TodoService.new.mark_todo(target, current_user)&.first
errors = errors_on_object(todo) if todo