Set default status in 'CreateTask'
This commit is contained in:
parent
b459240ddb
commit
85d0280b8c
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ module Twenty::GraphQL::Mutation
|
||||||
argument :input, Twenty::GraphQL::Input::TaskInput
|
argument :input, Twenty::GraphQL::Input::TaskInput
|
||||||
|
|
||||||
def resolve(input:)
|
def resolve(input:)
|
||||||
Twenty::Task.create(input.to_h)
|
Twenty::Task.create input.to_h.merge(status: :backlog)
|
||||||
{"errors" => []}
|
{"errors" => []}
|
||||||
rescue => ex
|
rescue => ex
|
||||||
{"errors" => [ex.message]}
|
{"errors" => [ex.message]}
|
||||||
|
|
Loading…
Reference in a new issue