Add additional events for PIREP states #436 (#548)

This commit is contained in:
Nabeel S
2020-02-11 13:56:20 -05:00
committed by GitHub
parent 39159e2c2e
commit f392bf1cb8
5 changed files with 54 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Services;
use App\Contracts\Service;
use App\Events\PirepAccepted;
use App\Events\PirepCancelled;
use App\Events\PirepFiled;
use App\Events\PirepRejected;
use App\Events\UserStatsChanged;
@@ -255,6 +256,8 @@ class PirepService extends Service
'status' => PirepStatus::CANCELLED,
], $pirep->id);
event(new PirepCancelled($pirep));
return $pirep;
}