fix: use ServerService::getServer() for node lookup in WebSocket

This commit is contained in:
xboard
2026-03-26 03:51:58 +08:00
parent 74b5ef0b27
commit 3c3639613e
2 changed files with 2 additions and 2 deletions

View File

@@ -274,7 +274,7 @@ class ServerService
* @param string $serverType
* @return Server|null
*/
public static function getServer($serverId, ?string $serverType)
public static function getServer($serverId, ?string $serverType = null): Server | null
{
return Server::query()
->when($serverType, function ($query) use ($serverType) {