[F] Fix sql

This commit is contained in:
Azalea
2025-03-21 19:08:04 -04:00
parent 8649a74612
commit c1196042bf

View File

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