lib/osso/graphql/mutations/regenerate_oauth_credentials.rb in osso-0.0.3.24 vs lib/osso/graphql/mutations/regenerate_oauth_credentials.rb in osso-0.0.3.25

- old
+ new

@@ -11,10 +11,10 @@ field :oauth_client, Types::OauthClient, null: false field :errors, [String], null: false def resolve(id:) oauth_client = Osso::Models::OauthClient.find(id) - oauth_client.generate_secrets + oauth_client.regenerate_secrets! return response_data(oauth_client: oauth_client) if oauth_client.save response_error(errors: oauth_client.errors.full_messages) end