Skip to content

Commit

Permalink
Actually use the limit and skip values for GetSlotsAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
sudokoko committed Oct 4, 2023
1 parent 33a3acc commit 7133698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Starnet/LighthouseClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public async Task<int> GetStatusAsync()
public async Task<List<SlotEntity?>?> GetSlotsAsync(int limit = 20, int skip = 0)
{
// Get the list of slots from the API.
HttpResponseMessage slotsReq = await this.httpClient.GetAsync("slots");
HttpResponseMessage slotsReq = await this.httpClient.GetAsync($"slots?limit={limit}&skip={skip}");
if (!slotsReq.IsSuccessStatusCode)
{
return null; // Return null if the request failed.
Expand Down

0 comments on commit 7133698

Please sign in to comment.