fix(deployment): handle missing destination in deployment process to prevent errors
This commit is contained in:
parent
9ae5ec0ed3
commit
06b8d78153
1 changed files with 4 additions and 1 deletions
|
|
@ -1330,7 +1330,10 @@ private function deploy_to_additional_destinations()
|
|||
return;
|
||||
}
|
||||
foreach ($destination_ids as $destination_id) {
|
||||
$destination = StandaloneDocker::find($destination_id)->first();
|
||||
$destination = StandaloneDocker::find($destination_id);
|
||||
if (! $destination) {
|
||||
continue;
|
||||
}
|
||||
$server = $destination->server;
|
||||
if ($server->team_id !== $this->mainServer->team_id) {
|
||||
$this->application_deployment_queue->addLogEntry("Skipping deployment to {$server->name}. Not in the same team?!");
|
||||
|
|
|
|||
Loading…
Reference in a new issue