resolve merge conflict

This commit is contained in:
Andras Bacsai 2025-11-18 14:54:17 +01:00
parent 329708791e
commit acfee7d9f3
2 changed files with 6 additions and 8 deletions

View file

@ -622,6 +622,7 @@ public function updatedIsStatic($value)
public function updatedBuildPack() public function updatedBuildPack()
{ {
$originalBuildPack = $this->application->getOriginal('build_pack');
// Check if user has permission to update // Check if user has permission to update
try { try {
$this->authorize('update', $this->application); $this->authorize('update', $this->application);

View file

@ -188,16 +188,13 @@ protected static function booted()
// Remove SERVICE_FQDN_* and SERVICE_URL_* environment variables // Remove SERVICE_FQDN_* and SERVICE_URL_* environment variables
$application->environment_variables() $application->environment_variables()
->where(function ($q) { ->where('key', 'LIKE', 'SERVICE_FQDN_%')
$q->where('key', 'LIKE', 'SERVICE_FQDN_%') ->orWhere('key', 'LIKE', 'SERVICE_URL_%')
->orWhere('key', 'LIKE', 'SERVICE_URL_%');
})
->delete(); ->delete();
$application->environment_variables_preview() $application->environment_variables_preview()
->where(function ($q) { ->where('key', 'LIKE', 'SERVICE_FQDN_%')
$q->where('key', 'LIKE', 'SERVICE_FQDN_%') ->orWhere('key', 'LIKE', 'SERVICE_URL_%')
->orWhere('key', 'LIKE', 'SERVICE_URL_%');
})
->delete(); ->delete();
} }