1
0
Fork 0

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).
This commit is contained in:
Frank de Lange 2018-10-24 12:28:25 +02:00 committed by Rigel Kent
parent e730aef76a
commit 8684f3c1f6

View file

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