lamassu-server/migrations/1620319260238-timezones.js
2022-01-21 00:28:04 +00:00

18 lines
415 B
JavaScript

const _ = require('lodash/fp')
const settingsLoader = require('../lib/new-settings-loader')
exports.up = function (next) {
settingsLoader.loadLatest()
.then(({ config }) => {
if (!_.isEmpty(config))
config.locale_timezone = '0:0'
return settingsLoader.migrationSaveConfig(config)
})
.then(() => next())
.catch(err => next(err))
}
exports.down = function (next) {
next()
}