Merge pull request #1727 from lxix/fix-scheduled-tasks
fix: Scheduled Tasks won't execute after deleting resource with scheduled task
This commit is contained in:
commit
8f21ea9367
1 changed files with 2 additions and 2 deletions
|
|
@ -120,8 +120,8 @@ private function check_scheduled_tasks($schedule)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach ($scheduled_tasks as $scheduled_task) {
|
foreach ($scheduled_tasks as $scheduled_task) {
|
||||||
$service = $scheduled_task->service()->get();
|
$service = $scheduled_task->service()->first();
|
||||||
$application = $scheduled_task->application()->get();
|
$application = $scheduled_task->application()->first();
|
||||||
|
|
||||||
if (!$application && !$service) {
|
if (!$application && !$service) {
|
||||||
ray('application/service attached to scheduled task does not exist');
|
ray('application/service attached to scheduled task does not exist');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue