diff --git a/run.js b/run.js index f7222a71c8cb4f5fea5e4bd7126630c448ab952e..2fd89952cd9b78f801ef1835805c16ba729bbd45 100644 --- a/run.js +++ b/run.js @@ -15,7 +15,7 @@ process.on('uncaughtException', (err) => { } }) -const stack = require('duniter').statics.autoStack([{ +const stack = require('duniter').Statics.autoStack([{ name: 'duniter-ui', required: require('./index') }]); diff --git a/server/controller/webmin.js b/server/controller/webmin.js index ce88f09ca9b8d72d40763efb36dafd07d5cfc85b..373f2266be27dc5fef57d6ed94ab2e7b1add52cc 100644 --- a/server/controller/webmin.js +++ b/server/controller/webmin.js @@ -487,7 +487,7 @@ function WebAdmin (duniterServer, startServices, stopServices, listDuniterUIPlug yield server.BlockchainService.pushFIFO('uiResetData', () => co(function *() { yield that.stopAllServices(); yield server.unplugFileSystem(); - yield server.cleanDBData(); + yield server.resetData(); yield pluggedDALP; pluggedConfP = plugForConf(); pluggedDALP = replugDAL();