Added bool conversion for testdata seeding env var

ref #110
This commit is contained in:
Nicolai Ort 2021-01-20 17:59:33 +01:00
parent b15967ff31
commit c18012f65a
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export const config = {
phone_validation_countrycode: getPhoneCodeLocale(),
postalcode_validation_countrycode: getPostalCodeLocale(),
version: process.env.VERSION || require('../package.json').version,
seedTestData: process.env.SEED_TEST_DATA || false
seedTestData: JSON.parse(process.env.SEED_TEST_DATA) || false
}
let errors = 0
if (typeof config.internal_port !== "number") {