Commit 0b84dfbb authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #1041 Force msPeriod = msWindow in the configuration

parent e3f53a70
......@@ -3,6 +3,16 @@ import {ConfDTO} from "../lib/dto/ConfDTO"
module.exports = {
duniter: {
config: {
onLoading: async (conf:ConfDTO) => {
conf.msPeriod = conf.msWindow
},
beforeSave: async (conf:ConfDTO) => {
conf.msPeriod = conf.msWindow
}
},
cli: [{
name: 'config',
desc: 'Register configuration in database',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment