fix account screen
This commit is contained in:
parent
9d003fe9c8
commit
356e7322c8
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ function fetchAccounts () {
|
||||||
.then(row => {
|
.then(row => {
|
||||||
return row
|
return row
|
||||||
? Promise.resolve(row.data.accounts)
|
? 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)
|
.then(fetchAccounts)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue