feat: advanced wallet settings
This commit is contained in:
parent
b99f98982b
commit
9ec7f6f296
6 changed files with 193 additions and 42 deletions
22
migrations/1623975493095-add-crypto-units-to-config.js
Normal file
22
migrations/1623975493095-add-crypto-units-to-config.js
Normal 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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue