Correctly handle schedule task deletion and avoid errors; closes #2534
This commit is contained in:
parent
e1fa6d4e55
commit
65d04d0c05
4 changed files with 128 additions and 5 deletions
|
@ -43,7 +43,7 @@ class ProcessScheduleService
|
|||
public function handle(Schedule $schedule, bool $now = false)
|
||||
{
|
||||
/** @var \Pterodactyl\Models\Task $task */
|
||||
$task = $schedule->tasks()->where('sequence_id', 1)->first();
|
||||
$task = $schedule->tasks()->orderBy('sequence_id', 'asc')->first();
|
||||
|
||||
if (is_null($task)) {
|
||||
throw new DisplayException(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue