lib/osso/graphql/mutations/update_app_config.rb in osso-0.0.3.26 vs lib/osso/graphql/mutations/update_app_config.rb in osso-0.0.3.27
- old
+ new
@@ -15,10 +15,10 @@
def resolve(**args)
app_config = Osso::Models::AppConfig.find
return response_data(app_config: app_config) if app_config.update(**args)
- response_error(errors: e)
+ response_error(app_config.errors)
end
def ready?(*)
admin_ready?
end