mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
fix: handle domain remove correctly (#2978)
This commit is contained in:
parent
d03cab22c0
commit
2355fcb7cf
@ -78,6 +78,10 @@ func (wm *OrgDomainWriteModel) Reduce() error {
|
||||
wm.Primary = e.Domain == wm.Domain
|
||||
case *org.DomainRemovedEvent:
|
||||
wm.State = domain.OrgDomainStateRemoved
|
||||
wm.Verified = false
|
||||
wm.Primary = false
|
||||
wm.ValidationType = domain.OrgDomainValidationTypeUnspecified
|
||||
wm.ValidationCode = nil
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user