Commit 535fa3e1 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] add --store-ww option

parent 74a225eb
......@@ -24,6 +24,7 @@ module.exports = {
cliOptions: [
{ value: '--store-txs', desc: 'Enable full transaction history storage.' },
{ value: '--store-ww', desc: 'Enable WotWizard regular export.' },
],
config: {
......@@ -41,6 +42,14 @@ module.exports = {
conf.storage.transactions = true
}
}
if (program.storeWw) {
if (!conf.storage) {
conf.storage = { transactions: false, wotwizard: true }
}
else {
conf.storage.wotwizard = true
}
}
},
beforeSave: async (conf:ConfDTO) => {
conf.msPeriod = conf.msWindow
......
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