fix(api): block invalid destination types and service deletions

This commit is contained in:
Andras Bacsai committed 2026-06-15 17:03:01 +02:00
1 parent 506643603c
commit 9665aa292c
4 files changed
+216 -4

No files matched your search

+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();
}
}