mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
13 lines
333 B
Go
13 lines
333 B
Go
|
package command
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/eventstore/v2"
|
||
|
"github.com/caos/zitadel/internal/v2/repository/org"
|
||
|
)
|
||
|
|
||
|
func ORGAggregateFromWriteModel(wm *eventstore.WriteModel) *org.Aggregate {
|
||
|
return &org.Aggregate{
|
||
|
Aggregate: *eventstore.AggregateFromWriteModel(wm, org.AggregateType, org.AggregateVersion),
|
||
|
}
|
||
|
}
|