Skip to content

Commit

Permalink
fix(rbx_api,mantle): add limit when listing game passes to avoid 500
Browse files Browse the repository at this point in the history
  • Loading branch information
blake-mealey committed Dec 16, 2023
1 parent 04b5c0e commit 0f43d4e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mantle/rbx_api/src/game_passes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ impl RobloxApi {
experience_id: AssetId,
page_cursor: Option<String>,
) -> RobloxApiResult<ListGamePassesResponse> {
let mut req = self.client.get(format!(
"https://games.roblox.com/v1/games/{}/game-passes",
experience_id
));
let mut req = self
.client
.get(format!(
"https://games.roblox.com/v1/games/{}/game-passes",
experience_id
))
.query(&[("limit", 100.to_string())]);
if let Some(page_cursor) = page_cursor {
req = req.query(&[("cursor", &page_cursor)]);
}
Expand Down

1 comment on commit 0f43d4e

@vercel
Copy link

@vercel vercel bot commented on 0f43d4e Dec 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.