comment out the flight dupe check on import

This commit is contained in:
Nabeel Shahzad 2018-04-25 12:05:12 -05:00
parent 5cd9c608a7
commit 89f067807b

View File

@ -76,7 +76,7 @@ class FlightImporter extends ImportExport
$airline = $this->getAirline($row['airline']);
// Check if the imported flight is a duplicate
$temp_flight = new Flight([
/*$temp_flight = new Flight([
'airline_id' => $airline->id,
'flight_number' => $row['flight_number'],
'route_code' => $row['route_code'],
@ -86,7 +86,7 @@ class FlightImporter extends ImportExport
if($this->flightSvc->isFlightDuplicate($temp_flight)) {
$this->errorLog('Error in row '.$index.': Duplicate flight number detected');
return false;
}
}*/
// Try to find this flight
$flight = Flight::firstOrNew([