lamassu-server/migrations/1623975493095-add-crypto-units-to-config.js
2021-07-28 01:00:34 +01:00

22 lines
501 B
JavaScript

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