forked from Cookies_Github_mirror/AquaDX
[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