fix: payload (de)serialization of some events (#6858)

This commit is contained in:
Livio Spring
2023-11-03 13:02:17 +02:00
committed by GitHub
parent 585c8af5f2
commit 9378e19090
4 changed files with 12 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ const (
)
type IdentityProviderAddedEvent struct {
eventstore.BaseEvent
eventstore.BaseEvent `json:"-"`
IDPConfigID string `json:"idpConfigId,omitempty"`
IDPProviderType domain.IdentityProviderType `json:"idpProviderType,omitempty"`
@@ -55,7 +55,7 @@ func IdentityProviderAddedEventMapper(event eventstore.Event) (eventstore.Event,
}
type IdentityProviderRemovedEvent struct {
eventstore.BaseEvent
eventstore.BaseEvent `json:"-"`
IDPConfigID string `json:"idpConfigId"`
}
@@ -92,7 +92,7 @@ func IdentityProviderRemovedEventMapper(event eventstore.Event) (eventstore.Even
}
type IdentityProviderCascadeRemovedEvent struct {
eventstore.BaseEvent
eventstore.BaseEvent `json:"-"`
IDPConfigID string `json:"idpConfigId"`
}