feat: auto-deploy

This commit is contained in:
Andras Bacsai
2023-05-10 11:43:49 +02:00
parent c659683d92
commit c41bc8dac2
3 changed files with 20 additions and 11 deletions

View File

@@ -135,4 +135,11 @@ class Application extends BaseModel
{
return Activity::where('subject_id', $this->id)->where('properties->type_uuid', '=', $deployment_uuid)->first();
}
public function isDeployable(): bool
{
if ($this->settings->is_auto_deploy) {
return true;
}
return false;
}
}