fix: server status job

This commit is contained in:
Andras Bacsai
2024-01-17 11:52:56 +01:00
parent b6ce2e9122
commit a635e51486
5 changed files with 11 additions and 4 deletions

View File

@@ -141,6 +141,10 @@ class Server extends BaseModel
{
return $this->ip === 'host.docker.internal' || $this->id === 0;
}
static public function buildServers($teamId)
{
return Server::whereTeamId($teamId)->whereRelation('settings', 'is_reachable', true)->whereRelation('settings', 'is_build_server', true);
}
public function skipServer()
{
if ($this->ip === '1.2.3.4') {