Fix #1328 - application-config initialisation in CLI tools (#1343)

Test for an empty object in `cli.ts` when no config data is present (i.e. when run on a new install).
pull/1351/head
Frank de Lange 2018-10-24 12:28:25 +02:00 committed by Rigel Kent
parent e730aef76a
commit 8684f3c1f6
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ async function getSettings () {
if (err) {
return rej(err)
}
return res(data || settings)
return res(Object.keys(data).length === 0 ? settings : data)
})
})
}