chore: query formatting

This commit is contained in:
siiky 2024-09-12 16:24:41 +01:00
parent 6f7746c564
commit 083a7764d2

View file

@ -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) {