remove unused fiel

This commit is contained in:
adlerhurst 2020-11-27 13:30:08 +01:00
parent e48621c1f3
commit fc861ea544

View File

@ -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()
}