fix: save config used on migration
This commit is contained in:
parent
c072803ac3
commit
bd2d2b06c2
12 changed files with 31 additions and 19 deletions
|
|
@ -1,5 +1,5 @@
|
|||
const db = require('./db')
|
||||
const { saveConfig, loadLatest } = require('../lib/new-settings-loader')
|
||||
const { migrationSaveConfig, loadLatest } = require('../lib/new-settings-loader')
|
||||
|
||||
exports.up = function (next) {
|
||||
const sql = [
|
||||
|
|
@ -19,7 +19,7 @@ exports.up = function (next) {
|
|||
newConfig.notifications_notificationCenter_security = true
|
||||
}
|
||||
|
||||
return saveConfig(newConfig)
|
||||
return migrationSaveConfig(newConfig)
|
||||
.then(() => db.multi(sql, next))
|
||||
.catch(err => {
|
||||
return next(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue