fix: remove deprecated migration
This commit is contained in:
parent
1bc76679dd
commit
3a45c490ef
1 changed files with 0 additions and 21 deletions
|
|
@ -1,21 +0,0 @@
|
||||||
const _ = require('lodash/fp')
|
|
||||||
const { migrationSaveConfig, loadLatest } = require('../lib/new-settings-loader')
|
|
||||||
const { getCryptosFromWalletNamespace } = require('../lib/new-config-manager')
|
|
||||||
|
|
||||||
exports.up = function (next) {
|
|
||||||
const newConfig = {}
|
|
||||||
return loadLatest()
|
|
||||||
.then(config => {
|
|
||||||
const coins = getCryptosFromWalletNamespace(config)
|
|
||||||
_.map(coin => { newConfig[`wallets_${coin}_feeMultiplier`] = '1' }, coins)
|
|
||||||
return migrationSaveConfig(newConfig)
|
|
||||||
})
|
|
||||||
.then(next)
|
|
||||||
.catch(err => {
|
|
||||||
return next(err)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports.down = function (next) {
|
|
||||||
next()
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue