Fix scores added more recently
This commit is contained in:
parent
01828a57f1
commit
df35787be2
@ -78,7 +78,7 @@ class FixOldScores(
|
|||||||
for (task in tasks) {
|
for (task in tasks) {
|
||||||
val scores = dslContext.selectFrom(SCORES)
|
val scores = dslContext.selectFrom(SCORES)
|
||||||
.where(condition)
|
.where(condition)
|
||||||
.orderBy(SCORES.DATE.desc())
|
.orderBy(SCORES.ADDED_AT.desc())
|
||||||
.limit(task.limit)
|
.limit(task.limit)
|
||||||
.offset(task.offset)
|
.offset(task.offset)
|
||||||
.fetchInto(ScoresRecord::class.java)
|
.fetchInto(ScoresRecord::class.java)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user