mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-23 00:24:15 +02:00
fix: sentry error
This commit is contained in:
parent
ff752e2411
commit
d42934f258
@ -38,6 +38,8 @@ public function __construct($task)
|
|||||||
$this->resource = $service;
|
$this->resource = $service;
|
||||||
} else if ($application = $task->application()->first()) {
|
} else if ($application = $task->application()->first()) {
|
||||||
$this->resource = $application;
|
$this->resource = $application;
|
||||||
|
} else {
|
||||||
|
throw new \Exception('ScheduledTaskJob failed: No resource found.');
|
||||||
}
|
}
|
||||||
$this->team = Team::find($task->team_id);
|
$this->team = Team::find($task->team_id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user