From afd71cc82db4b5eda7dcc3d0a6a892754a078747 Mon Sep 17 00:00:00 2001 From: Brikaa Date: Sun, 10 Oct 2021 22:01:26 +0200 Subject: [PATCH] Fix env_val bug --- api/src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/config.js b/api/src/config.js index 1a9eb3d..8d0020f 100644 --- a/api/src/config.js +++ b/api/src/config.js @@ -215,7 +215,7 @@ options.forEach(option => { const parsed_val = parser(env_val); - const value = parsed_val || option.default; + const value = env_val === undefined ? option.default : parsed_val; option.validators.for_each(validator => { let response = null;