Fix airport field row being inserted and check against airport ID

This commit is contained in:
Nabeel Shahzad
2018-03-23 12:27:28 -05:00
parent c6f423087d
commit 1161106d9c
3 changed files with 11 additions and 2 deletions

View File

@@ -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]);
}
/**