Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emacsway committed Jan 16, 2024
1 parent bb96a8e commit 4a5fa33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func (a *EventSourcedAggregate[T]) LoadFrom(pastEvents []T) {

func (a *EventSourcedAggregate[T]) Update(e T) {
e.SetAggregateVersion(a.NextVersion())
a.handlers[e.EventType()](e)
a.AddDomainEvent(e)
a.handlers[e.EventType()](e)
}
func (a EventSourcedAggregate[T]) PendingDomainEvents() []T {
return a.EventiveEntity.PendingDomainEvents()
Expand Down

0 comments on commit 4a5fa33

Please sign in to comment.