chore: query formatting
This commit is contained in:
parent
6f7746c564
commit
083a7764d2
1 changed files with 6 additions and 8 deletions
|
|
@ -238,14 +238,12 @@ function plugins (settings, deviceId) {
|
|||
}
|
||||
|
||||
function fetchCurrentConfigVersion () {
|
||||
const sql = `select id from user_config
|
||||
where type='config'
|
||||
and valid
|
||||
order by id desc
|
||||
limit 1`
|
||||
|
||||
return db.one(sql)
|
||||
.then(row => row.id)
|
||||
const sql = `SELECT id FROM user_config
|
||||
WHERE type = 'config'
|
||||
AND valid
|
||||
ORDER BY id DESC
|
||||
LIMIT 1`
|
||||
return db.one(sql).then(row => row.id)
|
||||
}
|
||||
|
||||
function mapCoinSettings (coinParams) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue