fix(eventstore): improve pagination of handler filter (#6968)

* fix(setup): add filter_offset to `projections.current_states`

* fix(eventstore): allow offset in query

* fix(handler): offset for already processed events
This commit is contained in:
Silvan
2023-12-01 13:25:41 +01:00
committed by GitHub
parent e57076430b
commit e3d1ca4d58
20 changed files with 512 additions and 174 deletions

View File

@@ -97,9 +97,9 @@ func GenericEventMapper[T any, PT BaseEventSetter[T]](event Event) (Event, error
return e, nil
}
func isEventTypes(event Event, types ...EventType) bool {
func isEventTypes(command Command, types ...EventType) bool {
for _, typ := range types {
if event.Type() == typ {
if command.Type() == typ {
return true
}
}