mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-05 22:52:46 +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
|
wm.Primary = e.Domain == wm.Domain
|
||||||
case *org.DomainRemovedEvent:
|
case *org.DomainRemovedEvent:
|
||||||
wm.State = domain.OrgDomainStateRemoved
|
wm.State = domain.OrgDomainStateRemoved
|
||||||
|
wm.Verified = false
|
||||||
|
wm.Primary = false
|
||||||
|
wm.ValidationType = domain.OrgDomainValidationTypeUnspecified
|
||||||
|
wm.ValidationCode = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user