Fix 'UpdateTask'

This commit is contained in:
0x1eef 2024-03-28 14:17:12 -03:00
parent 9bbc067ff0
commit b459240ddb

View file

@ -9,7 +9,7 @@ module Twenty::GraphQL::Mutation
def resolve(task_id:, input:)
Twenty::Task
.with_pk!(task_id)
.update!(input.to_h)
.update(input.to_h)
{"errors" => []}
rescue => ex
{"errors" => [ex.message]}