From a457296b391e6fdeec7f679c4149e6fd8388a390 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 17 Jun 2020 19:45:18 -0600 Subject: [PATCH] * Remove 'date', 'datetime', and 'time' in favor of just 'timestamp' for env var directive * Allow "1" === true for boolean types --- core/config_loader.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/config_loader.js b/core/config_loader.js index 3844df1a..768cbe1d 100644 --- a/core/config_loader.js +++ b/core/config_loader.js @@ -117,7 +117,7 @@ module.exports = class ConfigLoader { switch (type) { case 'bool' : case 'boolean' : - value = 'true' === value.toLowerCase(); + value = ('1' === value || 'true' === value.toLowerCase()); break; case 'number' : @@ -137,9 +137,6 @@ module.exports = class ConfigLoader { } break; - case 'date' : - case 'time' : - case 'datetime' : case 'timestamp' : { const m = moment(value);