mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 08:34:14 +01:00
Use .revisedTime.local and .scheduledTime.local
Use .revisedTime.local and .scheduledTime.local instead of .actualTimeUTC which is no longer present in the API schema.
This commit is contained in:
parent
9c6686376e
commit
e00a547d6f
1 changed files with 6 additions and 4 deletions
|
|
@ -137,10 +137,12 @@ export default {
|
||||||
flights.forEach((flight) => {
|
flights.forEach((flight) => {
|
||||||
results.push({
|
results.push({
|
||||||
number: flight.number,
|
number: flight.number,
|
||||||
airline: flight.airline.name,
|
airline: flight.airline?.name ?? "unknown airline",
|
||||||
aircraft: flight.aircraft.model,
|
aircraft: flight.aircraft?.model ?? "unknown aircraft",
|
||||||
airport: flight.movement.airport.name,
|
airport: flight.movement?.airport?.name ?? "unknown airport",
|
||||||
time: flight.movement.actualTimeUtc,
|
time: flight.movement
|
||||||
|
? (flight.movement?.revisedTime?.local ?? flight.movement?.scheduledTime?.local ?? "unknown time")
|
||||||
|
: "unknown time"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue