mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-07 21:57:26 +08:00
[F] Fix sql
This commit is contained in:
@@ -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()
|
||||||
repo.save(this)
|
try {
|
||||||
|
repo.save(this)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
logger.error("Failed to update last use time for session $token", e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user