Update users SYS_LAST_UPDATE
This commit is contained in:
parent
edbe412f14
commit
35af5b2040
@ -301,6 +301,11 @@ class ImportScores(
|
|||||||
suspiciousUserIds.forEachIndexed { index, userId ->
|
suspiciousUserIds.forEachIndexed { index, userId ->
|
||||||
this.logger.info("Checking user $userId [$index/${suspiciousUserIds.size}]")
|
this.logger.info("Checking user $userId [$index/${suspiciousUserIds.size}]")
|
||||||
val isBanned = this.osuApi.checkIfUserBanned(userId)
|
val isBanned = this.osuApi.checkIfUserBanned(userId)
|
||||||
|
dslContext.update(USERS)
|
||||||
|
.set(USERS.SYS_LAST_UPDATE, OffsetDateTime.now())
|
||||||
|
.where(USERS.USER_ID.eq(userId))
|
||||||
|
.execute()
|
||||||
|
|
||||||
if(isBanned == true) {
|
if(isBanned == true) {
|
||||||
dslContext.update(SCORES)
|
dslContext.update(SCORES)
|
||||||
.set(SCORES.IS_BANNED, true)
|
.set(SCORES.IS_BANNED, true)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user