refactor: use loadLatestConfig() in place of loadLatest() where applicable
This commit is contained in:
parent
5342e9a8be
commit
cac88fda45
15 changed files with 52 additions and 56 deletions
|
|
@ -2,8 +2,8 @@ const _ = require('lodash/fp')
|
|||
const settingsLoader = require('../lib/new-settings-loader')
|
||||
|
||||
exports.up = function (next) {
|
||||
settingsLoader.loadLatest()
|
||||
.then(({ config }) => {
|
||||
settingsLoader.loadLatestConfig()
|
||||
.then(config => {
|
||||
if (!_.isEmpty(config))
|
||||
config.locale_timezone = '0:0'
|
||||
return settingsLoader.migrationSaveConfig(config)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue