From a1e6e82dd0f50f04050100fe8020afbcabbe659e Mon Sep 17 00:00:00 2001 From: Christian Hensen Date: Mon, 30 Oct 2023 11:54:25 -0400 Subject: [PATCH] chore: update requests made to use 'state' filter; request deprecated flags (#400) --- internal/ld/ld.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ld/ld.go b/internal/ld/ld.go index 1962f67e..70a8c1ff 100644 --- a/internal/ld/ld.go +++ b/internal/ld/ld.go @@ -114,7 +114,7 @@ func (c ApiClient) GetFlagKeyList(projKey string) ([]string, error) { } flagReq := c.ldClient.FeatureFlagsApi.GetFeatureFlags(ctx, projKey).Summary(true) - archiveReq := c.ldClient.FeatureFlagsApi.GetFeatureFlags(ctx, projKey).Summary(true).Archived(true) + archiveReq := c.ldClient.FeatureFlagsApi.GetFeatureFlags(ctx, projKey).Summary(true).Filter("state:archived") if len(project.Environments) > 0 { // The first environment allows filtering when retrieving flags.