Skip to content

Commit

Permalink
fix(org): handle reactivate event in write model (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerhurst committed Apr 15, 2021
1 parent 56b5270 commit 22feab6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/command/org_model.go
Expand Up @@ -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:
Expand Down

0 comments on commit 22feab6

Please sign in to comment.