v12.0.0 - initial commit
This commit is contained in:
commit
e2c49ea43c
1145 changed files with 97211 additions and 0 deletions
20
packages/server/migrations/1732881659436-rates-screen.js
Normal file
20
packages/server/migrations/1732881659436-rates-screen.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
const _ = require('lodash/fp')
|
||||
const { loadConfig, saveConfig } = require('./settings')
|
||||
|
||||
exports.up = function (next) {
|
||||
const newConfig = {}
|
||||
return loadConfig()
|
||||
.then(config => {
|
||||
if (!_.isNil(config.machineScreens_rates_active)) return
|
||||
newConfig[`machineScreens_rates_active`] = true
|
||||
return saveConfig(newConfig)
|
||||
})
|
||||
.then(next)
|
||||
.catch(err => {
|
||||
return next(err)
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue