This commit is contained in:
Andras Bacsai 2023-09-28 21:56:34 +02:00
parent c7946e7551
commit 91e1eb7664

View File

@ -212,13 +212,9 @@ class Application extends BaseModel
{
if (data_get($this, 'private_key_id')) {
return 'deploy_key';
}
if (data_get($this, 'source')) {
} else if (data_get($this, 'source')) {
return 'source';
}
if (data_get($this, 'private_key_id')) {
return 'deploy_key';
}
throw new \Exception('No deployment type found');
}
public function could_set_build_commands(): bool