add defaults
This commit is contained in:
parent
89b7c95c8a
commit
e6a7a601c9
3 changed files with 10 additions and 1 deletions
|
|
@ -40,8 +40,14 @@ function settings () {
|
|||
return settingsCache
|
||||
}
|
||||
|
||||
function save (config) {
|
||||
const sql = 'update user_config set data=$1 where type=$2'
|
||||
return db.none(sql, [{config}, 'config'])
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
settings,
|
||||
loadConfig,
|
||||
load
|
||||
load,
|
||||
save
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue