fix: remove deprecated migration

This commit is contained in:
José Oliveira 2022-02-18 00:24:24 +00:00
parent 1bc76679dd
commit 3a45c490ef

View file

@ -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()
}