Skip to content

Commit

Permalink
Merge pull request #263 from smoogipoo/fix-score-process-cli
Browse files Browse the repository at this point in the history
Fix missing beatmap when running score PP processing via CLI
  • Loading branch information
peppy authored Apr 27, 2024
2 parents 06bbe20 + cf4ae7e commit b3887b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ public async Task ProcessScoreAsync(SoloScoreInfo score, MySqlConnection connect

try
{
var beatmap = score.Beatmap;
score.Beatmap ??= (await beatmapStore.GetBeatmapAsync((uint)score.BeatmapID, connection, transaction))?.ToAPIBeatmap();

if (beatmap == null)
if (score.Beatmap is not APIBeatmap beatmap)
return;

if (!beatmapStore.IsBeatmapValidForPerformance(beatmap, (uint)score.RulesetID))
Expand Down

0 comments on commit b3887b3

Please sign in to comment.