9 10 11 12 13 14 15
# File 'lib/twenty/server/graphql/mutation/complete_task.rb', line 9 def resolve(task_id:) task = Twenty::Task.find(task_id) task.update!(status: :complete) {ok: true, errors: []} rescue => ex {ok: false, errors: [ex.message]} end