From 1cbd30bd9e9297596e73e657825860b731ce5472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20Sch=C3=B3sz?= <1337wndr@gmail.com> Date: Thu, 8 Feb 2024 21:23:01 +0100 Subject: [PATCH] Fix Scheduled Tasks won't execute after deleting resource with scheduled task --- app/Console/Kernel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 37266ca5d..593ce8fe1 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -120,8 +120,8 @@ class Kernel extends ConsoleKernel return; } foreach ($scheduled_tasks as $scheduled_task) { - $service = $scheduled_task->service()->get(); - $application = $scheduled_task->application()->get(); + $service = $scheduled_task->service()->first(); + $application = $scheduled_task->application()->first(); if (!$application && !$service) { ray('application/service attached to scheduled task does not exist');