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 ...@@ -27,7 +27,7 @@ module Mutations
def prepare_response(result) def prepare_response(result)
{ {
alert: result.payload[:alert], alert: result.payload[:alert],
errors: result.error? ? [result.message] : [] errors: result.errors
} }
end end
end end
......
...@@ -48,7 +48,7 @@ module Mutations ...@@ -48,7 +48,7 @@ module Mutations
{ {
container_expiration_policy: result.payload[:container_expiration_policy], container_expiration_policy: result.payload[:container_expiration_policy],
errors: result.error? ? [result.message] : [] errors: result.errors
} }
end 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