From ed74f4cc82967c614e983b6280cb9c48e0cc5ea7 Mon Sep 17 00:00:00 2001 From: nanaya Date: Fri, 6 Oct 2023 18:03:28 +0900 Subject: [PATCH] Fix error viewing realtime room on web --- app/Http/Controllers/Multiplayer/RoomsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Multiplayer/RoomsController.php b/app/Http/Controllers/Multiplayer/RoomsController.php index 600b9a62cf4..1f14802221c 100644 --- a/app/Http/Controllers/Multiplayer/RoomsController.php +++ b/app/Http/Controllers/Multiplayer/RoomsController.php @@ -170,7 +170,7 @@ public function show($id) $playlistItemsQuery = $room->playlist(); if ($room->isRealtime()) { - $playlistItemsQuery->whereHas('scores'); + $playlistItemsQuery->whereHas('scoreLinks'); } $beatmaps = $playlistItemsQuery->with('beatmap.beatmapset.beatmaps')->get()->pluck('beatmap'); $beatmapsets = $beatmaps->pluck('beatmapset');