2023-02-15 02:52:11 +01:00
|
|
|
package quota
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
|
|
)
|
|
|
|
|
2024-01-25 17:28:20 +01:00
|
|
|
func init() {
|
2023-09-22 11:37:16 +02:00
|
|
|
// AddedEventType is not emitted anymore.
|
|
|
|
// For ease of use, old events are directly mapped to SetEvent.
|
|
|
|
// This works, because the data structures are compatible.
|
2024-01-25 17:28:20 +01:00
|
|
|
eventstore.RegisterFilterEventMapper(AggregateType, AddedEventType, SetEventMapper)
|
|
|
|
eventstore.RegisterFilterEventMapper(AggregateType, SetEventType, SetEventMapper)
|
|
|
|
eventstore.RegisterFilterEventMapper(AggregateType, RemovedEventType, RemovedEventMapper)
|
|
|
|
eventstore.RegisterFilterEventMapper(AggregateType, NotificationDueEventType, NotificationDueEventMapper)
|
|
|
|
eventstore.RegisterFilterEventMapper(AggregateType, NotifiedEventType, NotifiedEventMapper)
|
2023-02-15 02:52:11 +01:00
|
|
|
}
|