fix: sentry error
This commit is contained in:
parent
ff752e2411
commit
d42934f258
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue