feat(core): prevent using servers with existing resources as build servers

This commit is contained in:
Andras Bacsai
2025-02-18 16:44:16 +01:00
parent 372b064dba
commit 65b925252c
3 changed files with 22 additions and 1 deletions

View File

@@ -1341,4 +1341,11 @@ $schema://$host {
throw new \Exception('Invalid proxy type.');
}
}
public function isEmpty()
{
return $this->applications()->count() == 0 &&
$this->databases()->count() == 0 &&
$this->services()->count() == 0;
}
}