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

Fix event type name of email_domain_changed #181

Merged
merged 1 commit into from
Mar 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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