lib/osso/graphql/mutations/create_identity_provider.rb in osso-0.0.10 vs lib/osso/graphql/mutations/create_identity_provider.rb in osso-0.0.11
- old
+ new
@@ -20,10 +20,15 @@
service: service,
domain: customer.domain,
oauth_client_id: oauth_client_id,
)
- return response_data(identity_provider: identity_provider) if identity_provider.save
+ if identity_provider.save
+ Osso::Analytics.capture(email: context[:email], event: self.class.name.demodulize, properties: {
+ service: service, enterprise_account_id: enterprise_account_id, oauth_client_id: oauth_client_id
+ })
+ return response_data(identity_provider: identity_provider)
+ end
response_error(identity_provider.errors)
end
def domain(enterprise_account_id:, **args)