mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-24 08:12:15 +00:00
refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907)
This commit is contained in:
@@ -2,6 +2,7 @@ package command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/caos/logging"
|
||||
"github.com/caos/zitadel/internal/domain"
|
||||
"github.com/caos/zitadel/internal/eventstore"
|
||||
@@ -20,9 +21,9 @@ func (s *Step16) execute(ctx context.Context, commandSide *Commands) error {
|
||||
}
|
||||
|
||||
func (c *Commands) SetupStep16(ctx context.Context, step *Step16) error {
|
||||
fn := func(iam *IAMWriteModel) ([]eventstore.EventPusher, error) {
|
||||
fn := func(iam *IAMWriteModel) ([]eventstore.Command, error) {
|
||||
iamAgg := IAMAggregateFromWriteModel(&iam.WriteModel)
|
||||
events := make([]eventstore.EventPusher, 0)
|
||||
events := make([]eventstore.Command, 0)
|
||||
|
||||
for _, text := range step.DefaultMessageTexts {
|
||||
mailEvents, _, err := c.setDefaultMessageText(ctx, iamAgg, &text)
|
||||
|
||||
Reference in New Issue
Block a user