Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
duniter-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
modules
duniter-ui
Commits
e9170e2c
Commit
e9170e2c
authored
5 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[fix] broken module because of duniter import (not allowed)
parent
fcc43c6a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/controller/webmin.js
+1
-3
1 addition, 3 deletions
server/controller/webmin.js
with
1 addition
and
3 deletions
server/controller/webmin.js
+
1
−
3
View file @
e9170e2c
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment