fix(ApplicationDeploymentJob): ensure source is an object before checking GitHub app properties
This commit is contained in:
parent
8efcaf642a
commit
75200717dd
1 changed files with 1 additions and 1 deletions
|
|
@ -1377,7 +1377,7 @@ private function set_coolify_variables()
|
|||
|
||||
private function check_git_if_build_needed()
|
||||
{
|
||||
if ($this->source->getMorphClass() === \App\Models\GithubApp::class && $this->source->is_public === false) {
|
||||
if (is_object($this->source) && $this->source->getMorphClass() === \App\Models\GithubApp::class && $this->source->is_public === false) {
|
||||
$repository = githubApi($this->source, "repos/{$this->customRepository}");
|
||||
$data = data_get($repository, 'data');
|
||||
if (isset($data->id)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue