lib/osso/graphql/mutations/create_enterprise_account.rb in osso-0.0.3.26 vs lib/osso/graphql/mutations/create_enterprise_account.rb in osso-0.0.3.27

- old
+ new

@@ -17,10 +17,10 @@ enterprise_account = Osso::Models::EnterpriseAccount.new(args) enterprise_account.oauth_client_id ||= find_client_db_id(context[:oauth_client_id]) return response_data(enterprise_account: enterprise_account) if enterprise_account.save - response_error(errors: enterprise_account.errors.full_messages) + response_error(enterprise_account.errors) end def find_client_db_id(oauth_client_identifier) Osso::Models::OauthClient.find_by(identifier: oauth_client_identifier). id