Fix where for paused
This commit is contained in:
@@ -41,7 +41,7 @@ class DeletePireps extends Listener
|
|||||||
$dt = Carbon::now('UTC')->subHours($expire_time_hours);
|
$dt = Carbon::now('UTC')->subHours($expire_time_hours);
|
||||||
$pireps = Pirep::where('created_at', '<', $dt)
|
$pireps = Pirep::where('created_at', '<', $dt)
|
||||||
->where(['state' => $state])
|
->where(['state' => $state])
|
||||||
->where(['status', '<>', PirepStatus::PAUSED])
|
->where('status', '<>', PirepStatus::PAUSED)
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
/** @var PirepService $pirepSvc */
|
/** @var PirepService $pirepSvc */
|
||||||
|
|||||||
Reference in New Issue
Block a user