[F] Fix sql

pull/132/head
Azalea 2025-03-21 19:08:04 -04:00
parent 8649a74612
commit c1196042bf
1 changed files with 5 additions and 1 deletions

View File

@ -82,6 +82,10 @@ class KeychipSessionService(
*/
fun find(token: String) = repo.findByToken(token)?.apply {
lastUse = System.currentTimeMillis()
try {
repo.save(this)
} catch (e: Exception) {
logger.error("Failed to update last use time for session $token", e)
}
}
}