From 94fdb9a022c9fd27ec294b9fb3ca012b0330be87 Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Fri, 7 Jul 2023 15:48:41 +0200 Subject: [PATCH] fix: org metadata query (#6161) Co-authored-by: Fabi --- internal/api/grpc/metadata/metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/grpc/metadata/metadata.go b/internal/api/grpc/metadata/metadata.go index 731dda98a8..e54007e09a 100644 --- a/internal/api/grpc/metadata/metadata.go +++ b/internal/api/grpc/metadata/metadata.go @@ -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)) }