Commit f566f1be authored by Jarka Košanová's avatar Jarka Košanová

Use errors method of ServiceResponse

parent a99f7b98
......@@ -27,7 +27,7 @@ module Mutations
def prepare_response(result)
{
alert: result.payload[:alert],
errors: result.error? ? [result.message] : []
errors: result.errors
}
end
end
......
......@@ -48,7 +48,7 @@ module Mutations
{
container_expiration_policy: result.payload[:container_expiration_policy],
errors: result.error? ? [result.message] : []
errors: result.errors
}
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment