Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Fix event type name of email_domain_changed (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtgto authored Mar 31, 2020
1 parent 187a39c commit 94e6293
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions SKClient/Sources/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -757,7 +757,7 @@ extension Client {
team?.domain = domain
}

func emailDomainChange(_ event: Event) {
func emailDomainChanged(_ event: Event) {
guard let domain = event.emailDomain else {
return
}
Expand Down
2 changes: 1 addition & 1 deletion SKCore/Sources/Event.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 94e6293

Please sign in to comment.