all repos — litestore @ 55bad925f20109e282680251756e6e219b706c3c

A minimalist nosql document store.

Fixes #69
h3rald h3rald@h3rald.com
Thu, 18 Aug 2022 20:13:08 +0000
commit

55bad925f20109e282680251756e6e219b706c3c

parent

a4182f901e87fe6c652812688fbd84aaec65d1ce

1 files changed, 5 insertions(+), 2 deletions(-)

jump to
M src/litestorepkg/lib/cli.nimsrc/litestorepkg/lib/cli.nim

@@ -182,10 +182,15 @@ discard

else: discard + LS.config = configuration + LS.configFile = configFile LS.operation = operation LS.address = address LS.port = port LS.file = file + if LS.config != newJNull() and LS.config.hasKey("settings") and LS.config["settings"].hasKey("store"): + # Need to be overridden before setup (called before config is initialized) + LS.file = LS.config["settings"]["store"].getStr LS.directory = directory LS.readonly = readonly LS.favicon = favicon

@@ -195,8 +200,6 @@ LS.auth = auth

LS.manageSystemData = system LS.middleware = middleware LS.authFile = authFile - LS.config = configuration - LS.configFile = configFile LS.importTags = importTags LS.notSerachable = notSerachable LS.mount = mount