* Remove 'date', 'datetime', and 'time' in favor of just 'timestamp' for env var directive

* Allow "1" === true for boolean types
This commit is contained in:
Bryan Ashby 2020-06-17 19:45:18 -06:00
parent 4d4be5d6a9
commit a457296b39
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 1 additions and 4 deletions

View File

@ -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);