Fix airport field row being inserted and check against airport ID
This commit is contained in:
@@ -169,8 +169,8 @@ class FlightImporter extends ImportExport
|
||||
protected function processAirport($airport)
|
||||
{
|
||||
return Airport::firstOrCreate([
|
||||
'icao' => $airport,
|
||||
], ['name' => $airport]);
|
||||
'id' => $airport,
|
||||
], ['icao' => $airport, 'name' => $airport]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user