erm maybe check if there is actually a doc in the db
This commit is contained in:
parent
3ae5407a2d
commit
90e9a40c7c
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@ class SessionExtension : Extension() {
|
|||
content = "Replay session disabled"
|
||||
}
|
||||
} else {
|
||||
ConfigCollection().update(ConfigCollection().get()!!.copy(replaySession = true))
|
||||
if (ConfigCollection().get() == null) {
|
||||
ConfigCollection().set(ConfigCollection().get()!!.copy(replaySession = true))
|
||||
} else {
|
||||
ConfigCollection().update(ConfigCollection().get()!!.copy(replaySession = true))
|
||||
}
|
||||
respond {
|
||||
content = "Replay session enabled"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue