zitadel/internal/key/repository/view/query.go
Livio Amstutz 87a2e18a4d
fix: migration, key rotation and org event reducing (#1403)
* fix: migration, key rotation and org event reducing

* fix oidc app

* pointer receiver name
2021-03-10 14:32:56 +01:00

14 lines
413 B
Go

package view
import (
"github.com/caos/zitadel/internal/eventstore"
"github.com/caos/zitadel/internal/repository/iam"
"github.com/caos/zitadel/internal/repository/keypair"
)
func KeyPairQuery(latestSequence uint64) *eventstore.SearchQueryBuilder {
return eventstore.NewSearchQueryBuilder(eventstore.ColumnsEvent, iam.AggregateType).
SequenceGreater(latestSequence).
EventTypes(keypair.AddedEventType)
}