feat: advanced wallet settings

This commit is contained in:
José Oliveira 2021-06-21 17:24:33 +01:00
parent b99f98982b
commit 9ec7f6f296
6 changed files with 193 additions and 42 deletions

View file

@ -0,0 +1,22 @@
const { saveConfig } = require('../lib/new-settings-loader')
exports.up = function (next) {
const cryptoUnits = {
wallets_BTC_cryptoUnits: 'mUnits',
wallets_ETH_cryptoUnits: 'mUnits',
wallets_LTC_cryptoUnits: 'mUnits',
wallets_ZEC_cryptoUnits: 'mUnits',
wallets_BCH_cryptoUnits: 'mUnits'
}
return saveConfig(cryptoUnits)
.then(() => next())
.catch(err => {
console.log(err.message)
return next(err)
})
}
exports.down = function (next) {
next()
}