1
0

erm maybe check if there is actually a doc in the db
All checks were successful
Build & Publish / build (push) Successful in 3m35s

This commit is contained in:
Jannik Reimers 2025-04-05 22:02:29 +02:00
parent 3ae5407a2d
commit 90e9a40c7c
Signed by: jansel
GPG Key ID: 39C62D7D5233CFD0

View File

@ -28,7 +28,11 @@ class SessionExtension : Extension() {
content = "Replay session disabled" content = "Replay session disabled"
} }
} else { } 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 { respond {
content = "Replay session enabled" content = "Replay session enabled"
} }