class Osso::GraphQL::Mutations::DeleteIdentityProvider
Public Instance Methods
resolve(id:)
click to toggle source
# File lib/osso/graphql/mutations/delete_identity_provider.rb, line 14 def resolve(id:) identity_provider = Osso::Models::IdentityProvider.find(id) if identity_provider.destroy Osso::Analytics.capture(email: context[:email], event: self.class.name.demodulize, properties: { id: id }) return response_data(identity_provider: nil) end response_error(identity_provider.errors) end