fix(org): handle reactivate event in write model (#1596)

This commit is contained in:
Silvan 2021-04-15 18:15:49 +02:00 committed by GitHub
parent 56b527060b
commit 22feab63da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,8 @@ func (wm *OrgWriteModel) Reduce() error {
wm.State = domain.OrgStateActive
case *org.OrgDeactivatedEvent:
wm.State = domain.OrgStateInactive
case *org.OrgReactivatedEvent:
wm.State = domain.OrgStateActive
case *org.OrgChangedEvent:
wm.Name = e.Name
case *org.DomainPrimarySetEvent: