From 73683d66e8f368fa0fd4f0aab3241b3a51ef3770 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 16 Mar 2025 12:14:28 +0800 Subject: [PATCH] :bug [127;2u: Fix grpc handler --- pkg/internal/grpc/realms.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/internal/grpc/realms.go b/pkg/internal/grpc/realms.go index fdac079..98dcb36 100644 --- a/pkg/internal/grpc/realms.go +++ b/pkg/internal/grpc/realms.go @@ -3,6 +3,7 @@ package grpc import ( "context" "fmt" + "git.solsynth.dev/hypernet/nexus/pkg/nex" "git.solsynth.dev/hypernet/passport/pkg/authkit/models" @@ -17,7 +18,7 @@ func (v *App) ListAvailableRealm(ctx context.Context, request *proto.LookupUserR if err != nil { return nil, fmt.Errorf("unable to find target account: %v", err) } - realms, err := services.ListAvailableRealm(account) + realms, err := services.ListAvailableRealm(account, request.GetIncludePublic()) if err != nil { return nil, err }