Skip to content

Commit

Permalink
chore: update requests made to use 'state' filter; request deprecated…
Browse files Browse the repository at this point in the history
… flags (#400)
  • Loading branch information
cjhensen authored Oct 30, 2023
1 parent ce7c31f commit a1e6e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ld/ld.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a1e6e82

Please sign in to comment.