From 89f067807b7080ac23027782c6814674ca27afbd Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 25 Apr 2018 12:05:12 -0500 Subject: [PATCH] comment out the flight dupe check on import --- app/Services/ImportExport/FlightImporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/ImportExport/FlightImporter.php b/app/Services/ImportExport/FlightImporter.php index 1567277d..086578aa 100644 --- a/app/Services/ImportExport/FlightImporter.php +++ b/app/Services/ImportExport/FlightImporter.php @@ -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([