erm maybe check if there is actually a doc in the db
All checks were successful
Build & Publish / build (push) Successful in 3m35s
All checks were successful
Build & Publish / build (push) Successful in 3m35s
This commit is contained in:
parent
3ae5407a2d
commit
90e9a40c7c
@ -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…
x
Reference in New Issue
Block a user