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:
parent
cd6774e354
commit
099c146f1b
@ -293,7 +293,7 @@ class ImportScores(
|
|||||||
dslContext.update(BEATMAPS)
|
dslContext.update(BEATMAPS)
|
||||||
.set(BEATMAPS.BEATMAP_HASH, topScore.beatmap.checksum)
|
.set(BEATMAPS.BEATMAP_HASH, topScore.beatmap.checksum)
|
||||||
.set(BEATMAPS.STAR_RATING, topScore.beatmap.difficulty_rating)
|
.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.ARTIST, topScore.beatmapset!!.artist)
|
||||||
.set(BEATMAPS.SOURCE, topScore.beatmapset.source)
|
.set(BEATMAPS.SOURCE, topScore.beatmapset.source)
|
||||||
.set(BEATMAPS.TITLE, topScore.beatmapset.title)
|
.set(BEATMAPS.TITLE, topScore.beatmapset.title)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user