mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 16:15:17 +00:00
fix(deployment): handle missing destination in deployment process to prevent errors
This commit is contained in:
1 parent
9ae5ec0ed3
commit
06b8d78153
1 file changed
+4
-1
@@ -1330,7 +1330,10 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
|
||||
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?!");
|
||||
|
||||
Reference in new issue
Block a user