Merge pull request #55 from dalbodeule/develop

debug session (2x)
This commit is contained in:
JinU Choi 2024-08-10 17:30:59 +09:00 committed by GitHub
commit 42ac32b303
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,7 @@ class MariadbSessionStorage: SessionStorage {
}
override suspend fun write(id: String, value: String) {
return transaction {
val session = Session.find(SessionTable.key eq id).firstOrNull()
if (session == null) {
@ -37,3 +38,4 @@ class MariadbSessionStorage: SessionStorage {
}
}
}
}