From d95cfa74c5fcb9e58af1f85f8d76d859f155fce3 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Thu, 6 Nov 2025 15:39:08 +0100 Subject: Fix regression on estimates name --- src/Costasdev.Busurbano.Backend/VigoController.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Costasdev.Busurbano.Backend/VigoController.cs b/src/Costasdev.Busurbano.Backend/VigoController.cs index 6d321b8..320d898 100644 --- a/src/Costasdev.Busurbano.Backend/VigoController.cs +++ b/src/Costasdev.Busurbano.Backend/VigoController.cs @@ -26,12 +26,12 @@ public class VigoController : ControllerBase [HttpGet("GetStopEstimates")] public async Task Run( - [FromQuery] int stopId + [FromQuery] int id ) { try { - var response = await _api.GetStopEstimates(stopId); + var response = await _api.GetStopEstimates(id); // Return only the estimates array, not the stop metadata return new OkObjectResult(response.Estimates); } @@ -130,7 +130,7 @@ public class VigoController : ControllerBase foreach (var estimate in realTimeEstimates) { - outputBuffer.AppendLine($"Parsing estimate with line={estimate.Line}, route={estimate.Route} and minutes={estimate.Minutes} - Arrives at {now.AddMinutes(estimate.Minutes)}"); + outputBuffer.AppendLine($"Parsing estimate with line={estimate.Line}, route={estimate.Route} and minutes={estimate.Minutes} - Arrives at {now.AddMinutes(estimate.Minutes):HH:mm}"); var fullArrivalTime = now.AddMinutes(estimate.Minutes); var possibleCirculations = timetable @@ -178,7 +178,8 @@ public class VigoController : ControllerBase if (closestCirculationTime > 0) { outputBuffer.Append($"Closest circulation is {closestCirculation.Trip.Id} and arriving {closestCirculationTime} minutes LATE"); - } else if (closestCirculationTime == 0) + } + else if (closestCirculationTime == 0) { outputBuffer.Append($"Closest circulation is {closestCirculation.Trip.Id} and arriving ON TIME"); } -- cgit v1.3