lamassu-server/migrations/1620954224627-add-fee-priority.js
2021-11-16 18:02:44 +00:00

20 lines
No EOL
434 B
JavaScript

const { saveConfig, loadLatest } = require('../lib/new-settings-loader')
exports.up = function (next) {
const newConfig = {
wallets_BTC_feeDiscount: 'Default'
}
return loadLatest()
.then(config => {
return saveConfig(newConfig)
.then(() => next())
.catch(err => {
console.log(err.message)
return next(err)
})
})
}
module.exports.down = function (next) {
next()
}