mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
fix: key pair query for newer events (#2165)
This commit is contained in:
parent
8609ced24b
commit
272e411e27
@ -2,14 +2,13 @@ package view
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/caos/zitadel/internal/eventstore"
|
"github.com/caos/zitadel/internal/eventstore"
|
||||||
"github.com/caos/zitadel/internal/repository/iam"
|
|
||||||
"github.com/caos/zitadel/internal/repository/keypair"
|
"github.com/caos/zitadel/internal/repository/keypair"
|
||||||
)
|
)
|
||||||
|
|
||||||
func KeyPairQuery(latestSequence uint64) *eventstore.SearchQueryBuilder {
|
func KeyPairQuery(latestSequence uint64) *eventstore.SearchQueryBuilder {
|
||||||
return eventstore.NewSearchQueryBuilder(eventstore.ColumnsEvent).
|
return eventstore.NewSearchQueryBuilder(eventstore.ColumnsEvent).
|
||||||
AddQuery().
|
AddQuery().
|
||||||
AggregateTypes(iam.AggregateType).
|
AggregateTypes(keypair.AggregateType).
|
||||||
SequenceGreater(latestSequence).
|
SequenceGreater(latestSequence).
|
||||||
EventTypes(keypair.AddedEventType).
|
EventTypes(keypair.AddedEventType).
|
||||||
Builder()
|
Builder()
|
||||||
|
Loading…
Reference in New Issue
Block a user