File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
apps/backend/src/modules/departure Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,15 @@ export class DepartureServiceV2 {
58
58
skip : "canceled" ,
59
59
mode : "departures" ,
60
60
order : "real" ,
61
- minutesBefore : String ( 5 ) ,
61
+ minutesBefore : String ( 5 * 0 ) ,
62
62
minutesAfter : String ( 10 * 60 ) ,
63
+ limit : String ( 1_000 ) ,
63
64
} ) ,
64
65
) ,
65
66
) ;
66
67
67
68
const res = await this . golemioService . getGolemioData (
68
- `/v2/pid/departureboards& ${ searchParams . toString ( ) } ` ,
69
+ `/v2/pid/departureboards? ${ searchParams . toString ( ) } ` ,
69
70
) ;
70
71
71
72
if ( ! res . ok ) {
@@ -83,6 +84,7 @@ export class DepartureServiceV2 {
83
84
84
85
const parsedDepartures = parsed . data . departures . map ( ( departure ) => {
85
86
return {
87
+ id : departure . trip . id ,
86
88
departure : departure . departure_timestamp ,
87
89
delay : getDelayInSeconds ( departure . delay ) ,
88
90
headsign : departure . trip . headsign ,
Original file line number Diff line number Diff line change @@ -224,6 +224,8 @@ export class DepartureController {
224
224
metroOnly : parsedQuery . metroOnly ,
225
225
} ) ;
226
226
227
- return departureSchema . array ( ) . parse ( departures ) ;
227
+ departureSchema . array ( ) . parse ( departures ) ;
228
+
229
+ return departures ;
228
230
}
229
231
}
You can’t perform that action at this time.
0 commit comments