fix: org metadata query (#6161)

Co-authored-by: Fabi <fabienne@zitadel.com>
This commit is contained in:
Livio Spring 2023-07-07 15:48:41 +02:00 committed by GitHub
parent 5182cb3ce3
commit 94fdb9a022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,5 +70,5 @@ func MetadataQueryToQuery(query *meta_pb.MetadataQuery) (query.SearchQuery, erro
}
func MetadataKeyQueryToQuery(q *meta_pb.MetadataKeyQuery) (query.SearchQuery, error) {
return query.NewUserMetadataKeySearchQuery(q.Key, object.TextMethodToQuery(q.Method))
return query.NewOrgMetadataKeySearchQuery(q.Key, object.TextMethodToQuery(q.Method))
}