few bug fixes

This commit is contained in:
Josh Harvey 2017-03-22 15:19:12 +02:00
parent fe1ed536c5
commit c3cd705bc9
3 changed files with 3960 additions and 7 deletions

View file

@ -79,7 +79,7 @@ function loadLatestConfig () {
order by id desc
limit 1`
db.oneOrNone(sql, ['config'])
return db.oneOrNone(sql, ['config'])
.then(row => row ? row.data.config : [])
}