Fix where for paused

This commit is contained in:
Nabeel Shahzad 2021-07-22 12:47:55 -04:00
parent f42a41286d
commit 78d3c6b577

View File

@ -41,7 +41,7 @@ class DeletePireps extends Listener
$dt = Carbon::now('UTC')->subHours($expire_time_hours);
$pireps = Pirep::where('created_at', '<', $dt)
->where(['state' => $state])
->where(['status', '<>', PirepStatus::PAUSED])
->where('status', '<>', PirepStatus::PAUSED)
->get();
/** @var PirepService $pirepSvc */