mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
remove unused fiel
This commit is contained in:
parent
e48621c1f3
commit
fc861ea544
@ -1,18 +0,0 @@
|
||||
package eventstore
|
||||
|
||||
import "context"
|
||||
|
||||
func PushAggregate(ctx context.Context, es *Eventstore, writeModel queryReducer, aggregate *Aggregate) error {
|
||||
err := es.FilterToQueryReducer(ctx, writeModel)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
events, err := es.PushAggregates(ctx, aggregate)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
writeModel.AppendEvents(events...)
|
||||
return writeModel.Reduce()
|
||||
}
|
Loading…
Reference in New Issue
Block a user