From cf4ae7e3214981183a91cb9c18a2de82f225d987 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Sat, 27 Apr 2024 03:08:58 +0900 Subject: [PATCH] Fix missing beatmap when running score PP processing via CLI --- .../Processors/ScorePerformanceProcessor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Server.Queues.ScoreStatisticsProcessor/Processors/ScorePerformanceProcessor.cs b/osu.Server.Queues.ScoreStatisticsProcessor/Processors/ScorePerformanceProcessor.cs index 2aa3ea73..4010a21e 100644 --- a/osu.Server.Queues.ScoreStatisticsProcessor/Processors/ScorePerformanceProcessor.cs +++ b/osu.Server.Queues.ScoreStatisticsProcessor/Processors/ScorePerformanceProcessor.cs @@ -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))