Fix pagination from API
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user