mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +00:00
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user