mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-20 23:07:33 +00:00
16 lines
411 B
Go
16 lines
411 B
Go
package view
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/eventstore"
|
|
"github.com/caos/zitadel/internal/repository/keypair"
|
|
)
|
|
|
|
func KeyPairQuery(latestSequence uint64) *eventstore.SearchQueryBuilder {
|
|
return eventstore.NewSearchQueryBuilder(eventstore.ColumnsEvent).
|
|
AddQuery().
|
|
AggregateTypes(keypair.AggregateType).
|
|
SequenceGreater(latestSequence).
|
|
EventTypes(keypair.AddedEventType).
|
|
Builder()
|
|
}
|