From b35c1e584ca9aa2f29d3140af7177bb7571658bf Mon Sep 17 00:00:00 2001 From: Adrian Salceanu Date: Wed, 11 Dec 2024 20:03:48 +0100 Subject: [PATCH] Fix disabling model storage --- src/Stipple.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Stipple.jl b/src/Stipple.jl index 5b24de0..b2e0dc3 100644 --- a/src/Stipple.jl +++ b/src/Stipple.jl @@ -389,9 +389,7 @@ const MODELDEPID = "!!MODEL!!" const CHANNELPARAM = :CHANNEL__ -function sessionid(; encrypt::Bool = true) :: String - use_model_storage() || error("Model storage is disabled") - +function sessionid(; encrypt::Bool = true) :: Union{String,Nothing} sessid = Stipple.ModelStorage.Sessions.GenieSession.session().id encrypt ? Genie.Encryption.encrypt(sessid) : sessid