mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix sql
parent
8649a74612
commit
c1196042bf
|
@ -82,6 +82,10 @@ class KeychipSessionService(
|
||||||
*/
|
*/
|
||||||
fun find(token: String) = repo.findByToken(token)?.apply {
|
fun find(token: String) = repo.findByToken(token)?.apply {
|
||||||
lastUse = System.currentTimeMillis()
|
lastUse = System.currentTimeMillis()
|
||||||
|
try {
|
||||||
repo.save(this)
|
repo.save(this)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
logger.error("Failed to update last use time for session $token", e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue