Skip to content
Snippets Groups Projects
Commit 0b84dfbb authored by Cédric Moreau's avatar Cédric Moreau
Browse files

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

parent e3f53a70
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment