lib/osso/graphql/mutations/update_app_config.rb in osso-0.0.3.19 vs lib/osso/graphql/mutations/update_app_config.rb in osso-0.0.3.20
- old
+ new
@@ -8,17 +8,16 @@
argument :name, String, required: false
argument :logo_url, String, required: false
argument :contact_email, String, required: false
-
field :app_config, Types::AppConfig, null: true
field :errors, [String], null: false
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)
end
def ready?(*)
admin_ready?