Skip to content

Commit 3580ac4

Browse files
committed
fix: icao_code output is now consistent if null
1 parent ef4f220 commit 3580ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/database/src/output/waypoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl From<v2::sql_structs::Waypoints> for Waypoint {
5353
area_code: waypoint.area_code,
5454
airport_ident: waypoint.region_code,
5555
// Not entirely sure if this is behaviour we intend
56-
icao_code: waypoint.icao_code.unwrap_or_default(),
56+
icao_code: waypoint.icao_code.unwrap_or("UNK".to_string()),
5757
ident: waypoint.waypoint_identifier,
5858
name: waypoint.waypoint_name,
5959
location: Coordinates {

0 commit comments

Comments
 (0)