Skip to content

Commit

Permalink
Added null protection for operator IATA.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Prickett committed Mar 13, 2023
1 parent afe6d8c commit 067b13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enricher/enricher.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ while (true) {
// Or just get this data from a list online and store it in Redis as
// static data. https://en.wikipedia.org/wiki/List_of_airline_codes
// FlightAware URL: https://aeroapi.flightaware.com/aeroapi/operators/U2
operator_iata: flight.operator_iata,
operator_iata: flight.operator_iata || '',
flight_number: flight.flight_number
};

Expand Down

0 comments on commit 067b13d

Please sign in to comment.