fix(deployment): handle missing destination in deployment process to prevent errors
This commit is contained in:
@@ -1330,7 +1330,10 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach ($destination_ids as $destination_id) {
|
foreach ($destination_ids as $destination_id) {
|
||||||
$destination = StandaloneDocker::find($destination_id)->first();
|
$destination = StandaloneDocker::find($destination_id);
|
||||||
|
if (! $destination) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$server = $destination->server;
|
$server = $destination->server;
|
||||||
if ($server->team_id !== $this->mainServer->team_id) {
|
if ($server->team_id !== $this->mainServer->team_id) {
|
||||||
$this->application_deployment_queue->addLogEntry("Skipping deployment to {$server->name}. Not in the same team?!");
|
$this->application_deployment_queue->addLogEntry("Skipping deployment to {$server->name}. Not in the same team?!");
|
||||||
|
Reference in New Issue
Block a user