Skip to content

Commit

Permalink
Filter out score without beatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Sep 8, 2023
1 parent 58fa22a commit bd7ae73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Traits/UserScoreable.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function beatmapBestScores(string $mode, int $limit, int $offset = 0, $wi
$results = new Collection(array_slice($this->beatmapBestScores[$mode], $offset, $limit));
} else {
$ids = array_slice($ids, $offset, $limit);
$results = Score::whereKey($ids)->orderByField('id', $ids)->get();
$results = Score::whereKey($ids)->orderByField('id', $ids)->default()->get();
}

$results->load($with);
Expand Down

0 comments on commit bd7ae73

Please sign in to comment.