Update users SYS_LAST_UPDATE

This commit is contained in:
nise.moe 2024-03-05 13:01:54 +01:00
parent edbe412f14
commit 35af5b2040

View File

@ -301,6 +301,11 @@ class ImportScores(
suspiciousUserIds.forEachIndexed { index, userId ->
this.logger.info("Checking user $userId [$index/${suspiciousUserIds.size}]")
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) {
dslContext.update(SCORES)
.set(SCORES.IS_BANNED, true)