Replace unique uuid single call

This commit is contained in:
Lance Pioch 2022-10-20 20:20:37 -04:00
parent 3e405b626b
commit 679a25a763
3 changed files with 2 additions and 14 deletions

View file

@ -134,14 +134,6 @@ class ServerRepository extends EloquentRepository implements ServerRepositoryInt
}
}
/**
* Check if a given UUID and UUID-Short string are unique to a server.
*/
public function isUniqueUuidCombo(string $uuid, string $short): bool
{
return !$this->getBuilder()->where('uuid', '=', $uuid)->orWhere('uuidShort', '=', $short)->exists();
}
/**
* Returns all the servers that exist for a given node in a paginated response.
*/