Skip to content

Commit

Permalink
fix: update the URL query to use v2
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Jun 20, 2024
1 parent 60595bf commit 4c54477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions news/announcements.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ func getItemsYear(year int) (*AWSNewsItemsResponse, error) {
SetResult(results).
SetQueryParams(map[string]string{
"size": "2000", // 2000 seems to be the max or no results return
"item.directoryId": "whats-new",
"item.directoryId": "whats-new-v2",
"sort_by": "item.additionalFields.postDateTime",
"sort_order": "desc",
"item.locale": "en_US",
"tags.id": fmt.Sprintf("whats-new#year#%d", year),
"tags.id": fmt.Sprintf("whats-new-v2#year#%d", year),
}).
SetHeader("Accept", "application/json").
Get("/")
Expand Down

0 comments on commit 4c54477

Please sign in to comment.