mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
parent
d1284082a1
commit
800eeca7ba
@ -93,6 +93,9 @@ func (c *Commands) setup(ctx context.Context, step Step, iamAggregateProvider fu
|
||||
events = append(events, iam_repo.NewSetupStepDoneEvent(ctx, iamAgg, step.Step()))
|
||||
|
||||
_, err = c.eventstore.PushEvents(ctx, events...)
|
||||
if caos_errs.IsErrorAlreadyExists(err) {
|
||||
logging.LogWithFields("SETUP-4M9gsf", "step", step.Step()).WithError(err).Info("setup step already done")
|
||||
}
|
||||
if err != nil {
|
||||
return caos_errs.ThrowPreconditionFailedf(nil, "EVENT-dbG31", "Setup %v failed", step.Step())
|
||||
}
|
||||
|
@ -82,6 +82,7 @@ func NewSetupStepDoneEvent(
|
||||
SetupDoneEventType,
|
||||
),
|
||||
Step: step,
|
||||
Done: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user