Fix scores added more recently

This commit is contained in:
nise.moe 2024-03-03 23:54:31 +01:00
parent 01828a57f1
commit df35787be2

View File

@ -78,7 +78,7 @@ class FixOldScores(
for (task in tasks) {
val scores = dslContext.selectFrom(SCORES)
.where(condition)
.orderBy(SCORES.DATE.desc())
.orderBy(SCORES.ADDED_AT.desc())
.limit(task.limit)
.offset(task.offset)
.fetchInto(ScoresRecord::class.java)