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

[fix] broken module because of duniter import (not allowed)

parent fcc43c6a
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@ const _ = require('underscore');
const Q = require('q');
const co = require('co');
const rawer = {}
const toJson = require("duniter/app/modules/bma/lib/tojson");
module.exports = (duniterServer, startServices, stopServices, listDuniterUIPlugins, stack) => {
return new WebAdmin(duniterServer, startServices, stopServices, listDuniterUIPlugins, stack);
......@@ -760,8 +759,7 @@ function getLAN(family) {
async function getLastBlockWithDividend(server) {
// server.dal.blockDAL.lastBlockWithDividend() is deprectated (too expensive)
let stat = await server.dal.getStat('ud');
let { blocks } = toJson.stat(stat)
return server.dal.getBlock(blocks.pop())
return server.dal.getBlock(stat.blocks.pop())
}
util.inherits(WebAdmin, stream.Duplex);
......
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