2023-02-15 02:52:11 +01:00
|
|
|
package quota
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterEventMappers(es *eventstore.Eventstore) {
|
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.
|
|
|
|
es.RegisterFilterEventMapper(AggregateType, AddedEventType, SetEventMapper).
|
|
|
|
RegisterFilterEventMapper(AggregateType, SetEventType, SetEventMapper).
|
2023-03-29 00:09:06 +02:00
|
|
|
RegisterFilterEventMapper(AggregateType, RemovedEventType, RemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(AggregateType, NotificationDueEventType, NotificationDueEventMapper).
|
|
|
|
RegisterFilterEventMapper(AggregateType, NotifiedEventType, NotifiedEventMapper)
|
2023-02-15 02:52:11 +01:00
|
|
|
}
|