mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-03 01:18:51 +00:00
repo event mappers
This commit is contained in:
@@ -28,6 +28,7 @@ func StartRepository(config *Config) (repo *Repository, err error) {
|
||||
eventstore: config.Eventstore,
|
||||
idGenerator: id.SonyFlakeGenerator,
|
||||
}
|
||||
iam_repo.RegisterEventMappers(repo.eventstore)
|
||||
|
||||
repo.secretCrypto, err = crypto.NewAESCrypto(config.SystemDefaults.IDPConfigVerificationKey)
|
||||
if err != nil {
|
||||
|
||||
@@ -107,6 +107,7 @@ func (a *Aggregate) PushIDPConfigChanged(
|
||||
configType idp.ConfigType,
|
||||
stylingType idp.StylingType,
|
||||
) *Aggregate {
|
||||
|
||||
event, err := NewIDPConfigChangedEvent(ctx, current, configID, name, configType, stylingType)
|
||||
if err != nil {
|
||||
return a
|
||||
|
||||
Reference in New Issue
Block a user