Fix pagination from API

This commit is contained in:
kurt-mcrae
2025-05-12 16:40:13 +10:00
parent 0d815849a7
commit 15c4b8271c
+1 -1
View File
@@ -64,7 +64,7 @@ public class StationWithPricesService : IStationWithPricesService
var stationCodes = allStations.Data.Select(s => s.Code);
//fetch the prices for the list of station codes
var prices = await _priceService.GetCurrentPricesByStationCodes(stationCodes, fuelType, pageNumber, pageSize);
var prices = await _priceService.GetCurrentPricesByStationCodes(stationCodes, fuelType, 1, int.MaxValue);
//there should be fewer prices than stations, since not all stations in the radius will have the selected fuel type
//iterate over the prices (less to loop over) and find the matching station, projecting into a StationWithPrices