fix: sentry error

This commit is contained in:
Andras Bacsai 2024-01-24 11:57:51 +01:00
parent ff752e2411
commit d42934f258

View File

@ -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);
} }