Merge branch 'main' into fix_adding_org_same_id_twice

This commit is contained in:
Iraq
2025-07-08 13:01:50 +02:00
committed by GitHub
281 changed files with 19278 additions and 3912 deletions

View File

@@ -1,6 +1,8 @@
package org
import (
"context"
"github.com/zitadel/zitadel/internal/eventstore"
)
@@ -27,3 +29,7 @@ func NewAggregate(id string) *Aggregate {
},
}
}
func AggregateFromWriteModel(ctx context.Context, wm *eventstore.WriteModel) *eventstore.Aggregate {
return eventstore.AggregateFromWriteModelCtx(ctx, wm, AggregateType, AggregateVersion)
}