update remaining code for versioned config
This commit is contained in:
parent
2c6177bff9
commit
e6cd0d9473
6 changed files with 25 additions and 20 deletions
|
|
@ -7,7 +7,10 @@ function pp (o) {
|
|||
}
|
||||
|
||||
function dbFetchConfig () {
|
||||
return db.oneOrNone('select data from user_config where type=$1', ['config'])
|
||||
return db.oneOrNone(
|
||||
'select data from user_config where type=$1 order by id desc limit 1',
|
||||
['config']
|
||||
)
|
||||
.then(row => row && row.data)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue