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.
This commit is contained in:
Stedoss 2025-06-21 19:06:38 +01:00
parent cd6774e354
commit 099c146f1b

View File

@ -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)