Skip to content

Commit

Permalink
Fix preloading beatmapset
Browse files Browse the repository at this point in the history
Doing another `load` overrides the previous one.
  • Loading branch information
nanaya committed Dec 3, 2024
1 parent ceb8d7f commit c932232
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/Http/Controllers/Multiplayer/RoomsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,11 @@ public function store()
private function createJoinedRoomResponse($room)
{
return json_item(
$room
->load('host.country')
->load('playlist.beatmap.beatmapset')
->load('playlist.beatmap.baseMaxCombo'),
$room->loadMissing([
'host',
'playlist.beatmap.beatmapset',
'playlist.beatmap.baseMaxCombo',
]),
'Multiplayer\Room',
[
'current_user_score.playlist_item_attempts',
Expand Down

0 comments on commit c932232

Please sign in to comment.