From e161b89afbd4a4497d01bc0c4116614be93eecec Mon Sep 17 00:00:00 2001 From: gearnode Date: Wed, 22 Jan 2025 16:31:27 +0100 Subject: [PATCH] Fix func name Signed-off-by: gearnode --- pkg/api/console/v1/v1_resolver.go | 2 +- pkg/probo/probo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/console/v1/v1_resolver.go b/pkg/api/console/v1/v1_resolver.go index 220cd0397..202ade022 100644 --- a/pkg/api/console/v1/v1_resolver.go +++ b/pkg/api/console/v1/v1_resolver.go @@ -27,7 +27,7 @@ func (r *frameworkResolver) Controls(ctx context.Context, obj *types.Framework, func (r *organizationResolver) Frameworks(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.FrameworkConnection, error) { cursor := types.NewCursor(first, after, last, before) - page, err := r.svc.ListOrganizationFramework(ctx, "", cursor) + page, err := r.svc.ListOrganizationFrameworks(ctx, obj.ID, cursor) if err != nil { return nil, fmt.Errorf("cannot list organization frameworks: %w", err) } diff --git a/pkg/probo/probo.go b/pkg/probo/probo.go index 1eb4ea1f9..0875114f5 100644 --- a/pkg/probo/probo.go +++ b/pkg/probo/probo.go @@ -40,7 +40,7 @@ func (s *Service) GetOrganization( return organization, nil } -func (s *Service) ListOrganizationFramework( +func (s *Service) ListOrganizationFrameworks( ctx context.Context, organizationID string, cursor *page.Cursor,