mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:07:31 +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