2023-02-15 01:52:11 +00:00
|
|
|
package quota
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
|
|
)
|
|
|
|
|
2024-01-25 16:28:20 +00:00
|
|
|
func init() {
|
2023-09-22 09:37:16 +00: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 16:28:20 +00: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 01:52:11 +00:00
|
|
|
}
|