This commit is contained in:
adlerhurst
2020-11-30 07:56:38 +01:00
parent c2400e1da5
commit 0780c23f76
5 changed files with 48 additions and 41 deletions

View File

@@ -38,11 +38,6 @@ func (es *Eventstore) Health(ctx context.Context) error {
//PushAggregate pushes the aggregate and reduces the new events on the aggregate
func (es *Eventstore) PushAggregate(ctx context.Context, writeModel queryReducer, aggregate aggregater) error {
err := es.FilterToQueryReducer(ctx, writeModel)
if err != nil {
return err
}
events, err := es.PushAggregates(ctx, aggregate)
if err != nil {
return err