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

This commit is contained in:
xboard committed 2026-03-26 03:51:58 +08:00
1 parent b9276470eb
commit c8ef04d55f
2 files changed
+2 -2

No files matched your search

+1 -1
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) {