From 099c146f1bdf103fc71d6f44c26517c7ff89f01f Mon Sep 17 00:00:00 2001 From: Stedoss <29103029+Stedoss@users.noreply.github.com> Date: Sat, 21 Jun 2025 19:06:38 +0100 Subject: [PATCH] Don't use passed in beatmap version on score update Not sure why the beatmap is even passed in here - but this seems obviously incorrect, look at the properties around it. --- .../src/main/kotlin/com/nisemoe/nise/scheduler/ImportScores.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nise-backend/src/main/kotlin/com/nisemoe/nise/scheduler/ImportScores.kt b/nise-backend/src/main/kotlin/com/nisemoe/nise/scheduler/ImportScores.kt index 3d3e4ad..c65c76d 100644 --- a/nise-backend/src/main/kotlin/com/nisemoe/nise/scheduler/ImportScores.kt +++ b/nise-backend/src/main/kotlin/com/nisemoe/nise/scheduler/ImportScores.kt @@ -293,7 +293,7 @@ class ImportScores( dslContext.update(BEATMAPS) .set(BEATMAPS.BEATMAP_HASH, topScore.beatmap.checksum) .set(BEATMAPS.STAR_RATING, topScore.beatmap.difficulty_rating) - .set(BEATMAPS.VERSION, beatmap.version) + .set(BEATMAPS.VERSION, topScore.beatmap.version) .set(BEATMAPS.ARTIST, topScore.beatmapset!!.artist) .set(BEATMAPS.SOURCE, topScore.beatmapset.source) .set(BEATMAPS.TITLE, topScore.beatmapset.title)