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