fix account screen

This commit is contained in:
Josh Harvey 2017-04-26 03:10:40 +03:00
parent 9d003fe9c8
commit 356e7322c8

View file

@ -11,7 +11,7 @@ function fetchAccounts () {
.then(row => {
return row
? Promise.resolve(row.data.accounts)
: db.none('insert into user_config (type, data) values ($1, $2)', ['accounts', {accounts: []}])
: db.none('insert into user_config (type, data, valid) values ($1, $2, $3)', ['accounts', {accounts: []}, true])
.then(fetchAccounts)
})
}