Move the prefile event and add a new error exception (#1111)
* Move the prefile event and add a new error exception * Remove extra import * Add empty handler for testing * Fix styling * Fix styleci
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace App\Http\Controllers\Api;
|
||||
|
||||
use App\Contracts\Controller;
|
||||
use App\Events\PirepPrefiled;
|
||||
use App\Events\PirepUpdated;
|
||||
use App\Exceptions\AircraftPermissionDenied;
|
||||
use App\Exceptions\PirepCancelled;
|
||||
@@ -219,8 +218,6 @@ class PirepController extends Controller
|
||||
$this->updateFields($pirep, $request);
|
||||
$this->updateFares($pirep, $request);
|
||||
|
||||
event(new PirepPrefiled($pirep));
|
||||
|
||||
return $this->get($pirep->id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user