Fix func name

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-01-22 16:31:27 +01:00
parent bd85afa205
commit e161b89afb
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
}

View File

@@ -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,