fix: deployment key based works

This commit is contained in:
Andras Bacsai committed 2023-07-05 22:10:10 +02:00
1 parent 1342634907
commit 4f98cef7cb
4 files changed
+9 -5

No files matched your search

+4 -1
View File
@@ -195,6 +195,9 @@ class Application extends BaseModel
}
public function deploymentType()
{
if (data_get($this, 'private_key_id')) {
return 'deploy_key';
}
if (data_get($this, 'source')) {
return 'source';
}
@@ -203,4 +206,4 @@ class Application extends BaseModel
}
throw new \Exception('No deployment type found');
}
}
}