Skip to content

Commit

Permalink
Merge pull request #11565 from nanaya/fix-legacy-score-lookup
Browse files Browse the repository at this point in the history
Fix legacy score lookup on new table
  • Loading branch information
peppy authored Oct 18, 2024
2 parents f844085 + ad0fd5e commit 3e0b931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ScoresController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function download($rulesetOrSoloId, $id = null)
->where('replay', true)
->firstOrFail();

$soloScore = SoloScore::firstWhere('legacy_score_id', $score->getKey());
$soloScore = SoloScore::firstWhere(['legacy_score_id' => $score->getKey(), 'ruleset_id' => $score->ruleset_id]);
}

$file = $score->getReplayFile();
Expand Down

0 comments on commit 3e0b931

Please sign in to comment.