mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-12-14 11:56:15 +08:00
[F] Fix sql
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user