From 9fdd359652aaab9674e6e2dd12cc475b8e6f39a5 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Thu, 2 Apr 2020 22:01:34 +0200
Subject: [PATCH] [fix] broken APIs with Duniter 1.7.21 (or less)

---
 run.js                      | 2 +-
 server/controller/webmin.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/run.js b/run.js
index f7222a7..2fd8995 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 ce88f09..373f226 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();
-- 
GitLab