mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +00:00
debug session (2x)
- MariadbSessionStorage not found error fix.
This commit is contained in:
@@ -25,9 +25,10 @@ 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) {
|
||||||
Session.new {
|
Session.new {
|
||||||
this.key = id
|
this.key = id
|
||||||
this.value = value
|
this.value = value
|
||||||
@@ -36,4 +37,5 @@ class MariadbSessionStorage: SessionStorage {
|
|||||||
session.value = value
|
session.value = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user