diff options
Diffstat (limited to 'src/Costasdev.Busurbano.Backend/VigoController.cs')
| -rw-r--r-- | src/Costasdev.Busurbano.Backend/VigoController.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Costasdev.Busurbano.Backend/VigoController.cs b/src/Costasdev.Busurbano.Backend/VigoController.cs index 41a8765..be0e7c6 100644 --- a/src/Costasdev.Busurbano.Backend/VigoController.cs +++ b/src/Costasdev.Busurbano.Backend/VigoController.cs @@ -37,8 +37,9 @@ public class VigoController : ControllerBase try { - var estimates = await _api.GetStopEstimates(requestedStopId); - return new OkObjectResult(estimates); + var response = await _api.GetStopEstimates(requestedStopId); + // Return only the estimates array, not the stop metadata + return new OkObjectResult(response.Estimates); } catch (InvalidOperationException) { |
