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

[fix] #1069 Wrong fix in previous commit

parent cc03ff03
No related branches found
No related tags found
No related merge requests found
"use strict"; "use strict";
import {ConfDTO} from "../lib/dto/ConfDTO" import {ConfDTO} from "../lib/dto/ConfDTO"
import {CommonConstants} from "../lib/common-libs/constants"
module.exports = { module.exports = {
duniter: { duniter: {
...@@ -7,9 +8,11 @@ module.exports = { ...@@ -7,9 +8,11 @@ module.exports = {
config: { config: {
onLoading: async (conf:ConfDTO) => { onLoading: async (conf:ConfDTO) => {
conf.msPeriod = conf.msWindow conf.msPeriod = conf.msWindow
conf.switchOnHeadAdvance = CommonConstants.SWITCH_ON_BRANCH_AHEAD_BY_X_BLOCKS
}, },
beforeSave: async (conf:ConfDTO) => { beforeSave: async (conf:ConfDTO) => {
conf.msPeriod = conf.msWindow conf.msPeriod = conf.msWindow
conf.switchOnHeadAdvance = CommonConstants.SWITCH_ON_BRANCH_AHEAD_BY_X_BLOCKS
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment