Fix Scheduled Tasks won't execute after deleting resource with scheduled task

This commit is contained in:
Barnabás Schósz committed 2024-02-09 17:36:47 +01:00
1 parent 6914280fb1
commit 1cbd30bd9e
1 file changed
+2 -2
+2 -2
View File
@@ -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');