refactor(environment-variables): simplify application build pack check in environment variable handling

This commit is contained in:
Andras Bacsai
2025-05-30 09:11:54 +02:00
parent 9480fc2b2f
commit c8bc80f448
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ class EnvironmentVariable extends BaseModel
if (! $found) {
$application = Application::find($environment_variable->resourceable_id);
if ($application && $application->build_pack !== 'dockerfile') {
if ($application) {
ModelsEnvironmentVariable::create([
'key' => $environment_variable->key,
'value' => $environment_variable->value,