lamassu-server/packages/server/migrations/1620319260238-timezones.js
2025-12-31 19:04:13 +01:00

16 lines
357 B
JavaScript

const _ = require('lodash/fp')
const { loadConfig, saveConfig } = require('./settings')
exports.up = function (next) {
loadConfig()
.then(config => {
if (!_.isEmpty(config)) config.locale_timezone = '0:0'
return saveConfig(config)
})
.then(() => next())
.catch(err => next(err))
}
exports.down = function (next) {
next()
}