diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-03-09 00:00:39 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-03-09 00:00:50 +0100 |
| commit | d71f0ed16d175285f2e8cbde6091994c2aa1d962 (patch) | |
| tree | e8b0bcc3f432fa9d5243dd4595af256511643151 /src/Enmarcha.Backend/Services | |
| parent | 5288cfbed34f94c4321b8d9dc497cfd0da3ffd26 (diff) | |
Enhance route details handling and add favorites functionality; improve error logging and response structure
Diffstat (limited to 'src/Enmarcha.Backend/Services')
| -rw-r--r-- | src/Enmarcha.Backend/Services/OtpService.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Enmarcha.Backend/Services/OtpService.cs b/src/Enmarcha.Backend/Services/OtpService.cs index e72877e..0de06bf 100644 --- a/src/Enmarcha.Backend/Services/OtpService.cs +++ b/src/Enmarcha.Backend/Services/OtpService.cs @@ -108,7 +108,9 @@ public class OtpService .Select(t => t.Stoptimes.ElementAtOrDefault(i)?.ScheduledDeparture ?? -1) .Where(d => d != -1) .OrderBy(d => d) - .ToList() + .ToList(), + PickupType = pattern.TripsForDate.FirstOrDefault()?.Stoptimes.ElementAtOrDefault(i)?.PickupType, + DropOffType = pattern.TripsForDate.FirstOrDefault()?.Stoptimes.ElementAtOrDefault(i)?.DropoffType }).ToList() }; } |
