Skip to content

Commit

Permalink
Fix error viewing realtime room on web
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Oct 6, 2023
1 parent 801f996 commit ed74f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Multiplayer/RoomsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ed74f4c

Please sign in to comment.