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 () {
|
function fetchCurrentConfigVersion () {
|
||||||
const sql = `select id from user_config
|
const sql = `SELECT id FROM user_config
|
||||||
where type='config'
|
WHERE type = 'config'
|
||||||
and valid
|
AND valid
|
||||||
order by id desc
|
ORDER BY id DESC
|
||||||
limit 1`
|
LIMIT 1`
|
||||||
|
return db.one(sql).then(row => row.id)
|
||||||
return db.one(sql)
|
|
||||||
.then(row => row.id)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function mapCoinSettings (coinParams) {
|
function mapCoinSettings (coinParams) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue