From d3434dd46c1f4b7c2bdab75d79aa33b5096301ad Mon Sep 17 00:00:00 2001 From: Silvan <27845747+adlerhurst@users.noreply.github.com> Date: Mon, 2 Mar 2026 09:57:26 +0100 Subject: [PATCH] fix(command): correct aggregate ID assignment of groups (#11725) # Which Problems Are Solved The group write model used the `event.ID` field instead of `event.Aggregate().ID` as aggregate id. # How the Problems Are Solved replaced `event.ID` with `event.Aggregate().ID` --- internal/command/group_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/group_model.go b/internal/command/group_model.go index 4918d78c5..5bd052acc 100644 --- a/internal/command/group_model.go +++ b/internal/command/group_model.go @@ -59,7 +59,7 @@ func (g *GroupWriteModel) Reduce() error { for _, event := range g.Events { switch e := event.(type) { case *group.GroupAddedEvent: - g.AggregateID = e.ID + g.AggregateID = e.Aggregate().ID g.Name = e.Name g.Description = e.Description g.State = domain.GroupStateActive