mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
commit
42ac32b303
@ -25,6 +25,7 @@ class MariadbSessionStorage: SessionStorage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun write(id: String, value: String) {
|
override suspend fun write(id: String, value: String) {
|
||||||
|
return transaction {
|
||||||
val session = Session.find(SessionTable.key eq id).firstOrNull()
|
val session = Session.find(SessionTable.key eq id).firstOrNull()
|
||||||
|
|
||||||
if (session == null) {
|
if (session == null) {
|
||||||
@ -37,3 +38,4 @@ class MariadbSessionStorage: SessionStorage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user