feat(api): add REST endpoints for destinations (#10405)

This commit is contained in:
Andras Bacsai
2026-07-02 15:34:30 +02:00
committed by GitHub
6 changed files with 547 additions and 2 deletions
+1 -1
View File
@@ -144,6 +144,6 @@ class StandaloneDocker extends BaseModel
public function attachedTo()
{
return $this->applications?->count() > 0 || $this->databases()->count() > 0;
return $this->applications()->exists() || $this->databases()->count() > 0 || $this->services()->exists();
}
}
+1 -1
View File
@@ -124,6 +124,6 @@ class SwarmDocker extends BaseModel
public function attachedTo()
{
return $this->applications?->count() > 0 || $this->databases()->count() > 0;
return $this->applications()->exists() || $this->databases()->count() > 0 || $this->services()->exists();
}
}