From b187a0781d020de9ac4f0e5d2699b21e89c42a0f Mon Sep 17 00:00:00 2001 From: Jian Yuan Lee Date: Sun, 5 May 2024 13:29:28 +0100 Subject: [PATCH] fix: project sweeper uses get organization projects endpoint [skip ci] --- internal/provider/resource_project_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/provider/resource_project_test.go b/internal/provider/resource_project_test.go index 39fa91f8..b9b2c4f9 100644 --- a/internal/provider/resource_project_test.go +++ b/internal/provider/resource_project_test.go @@ -17,10 +17,10 @@ func init() { F: func(r string) error { ctx := context.Background() - listParams := &sentry.ListProjectsParams{} + listParams := &sentry.ListOrganizationProjectsParams{} for { - projects, resp, err := acctest.SharedClient.Projects.List(ctx, listParams) + projects, resp, err := acctest.SharedClient.OrganizationProjects.List(ctx, acctest.TestOrganization, listParams) if err != nil { return err }