From 1efa815ea2f35ee50e9d22bca83f52bab9374d02 Mon Sep 17 00:00:00 2001 From: mtgto Date: Sun, 29 Mar 2020 09:42:09 +0900 Subject: [PATCH] Fix event type name of email_domain_changed --- SKClient/Sources/Client.swift | 6 +++--- SKCore/Sources/Event.swift | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SKClient/Sources/Client.swift b/SKClient/Sources/Client.swift index 12d5105..4e5e024 100755 --- a/SKClient/Sources/Client.swift +++ b/SKClient/Sources/Client.swift @@ -146,8 +146,8 @@ open class Client { teamNameChange(event) case .teamDomainChange: teamDomainChange(event) - case .emailDomainChange: - emailDomainChange(event) + case .emailDomainChanged: + emailDomainChanged(event) case .teamProfileChange: teamProfileChange(event) case .teamProfileDelete: @@ -757,7 +757,7 @@ extension Client { team?.domain = domain } - func emailDomainChange(_ event: Event) { + func emailDomainChanged(_ event: Event) { guard let domain = event.emailDomain else { return } diff --git a/SKCore/Sources/Event.swift b/SKCore/Sources/Event.swift index 0c26999..7d95ce5 100755 --- a/SKCore/Sources/Event.swift +++ b/SKCore/Sources/Event.swift @@ -80,7 +80,7 @@ public enum EventType: String { case teamPrefChange = "team_pref_change" case teamRename = "team_rename" case teamDomainChange = "team_domain_change" - case emailDomainChange = "email_domain_change" + case emailDomainChanged = "email_domain_changed" case teamProfileChange = "team_profile_change" case teamProfileDelete = "team_profile_delete" case teamProfileReorder = "team_profile_reorder"