Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
duniter
Commits
fe9de408
Commit
fe9de408
authored
1 year ago
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] Fix error 'pub is undefined' in wot
parent
256dff4b
Branches
fix/1442/improve_bma_tx_history
No related tags found
1 merge request
!1425
fix(1442): Improve BMA '/tx/history'
Pipeline
#32081
failed
1 year ago
Stage: tests
Stage: package
Stage: quality
Stage: integration
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/modules/bma/lib/controllers/wot.ts
+8
-5
8 additions, 5 deletions
app/modules/bma/lib/controllers/wot.ts
with
8 additions
and
5 deletions
app/modules/bma/lib/controllers/wot.ts
+
8
−
5
View file @
fe9de408
...
@@ -142,10 +142,13 @@ export class WOTBinding extends AbstractController {
...
@@ -142,10 +142,13 @@ export class WOTBinding extends AbstractController {
search
search
))
as
FullIindexEntry
;
))
as
FullIindexEntry
;
}
}
const
certs
=
await
this
.
server
.
dal
.
certsToTarget
(
const
certs
=
idty
.
pub
,
(
idty
&&
IdentityDTO
.
getTargetHash
(
idty
)
(
await
this
.
server
.
dal
.
certsToTarget
(
);
idty
.
pub
,
IdentityDTO
.
getTargetHash
(
idty
)
)))
||
[];
const
theCerts
:
HttpCertification
[]
=
[];
const
theCerts
:
HttpCertification
[]
=
[];
for
(
const
cert
of
certs
)
{
for
(
const
cert
of
certs
)
{
const
certifier
=
await
this
.
server
.
dal
.
getWrittenIdtyByPubkeyForUidAndMemberAndCreatedOn
(
const
certifier
=
await
this
.
server
.
dal
.
getWrittenIdtyByPubkeyForUidAndMemberAndCreatedOn
(
...
@@ -254,7 +257,7 @@ export class WOTBinding extends AbstractController {
...
@@ -254,7 +257,7 @@ export class WOTBinding extends AbstractController {
search
search
))
as
FullIindexEntry
;
))
as
FullIindexEntry
;
}
}
const
certs
=
await
this
.
server
.
dal
.
certsFrom
(
idty
.
pub
);
const
certs
=
(
idty
&&
(
await
this
.
server
.
dal
.
certsFrom
(
idty
.
pub
)
))
||
[]
;
const
theCerts
:
HttpCertification
[]
=
[];
const
theCerts
:
HttpCertification
[]
=
[];
for
(
const
cert
of
certs
)
{
for
(
const
cert
of
certs
)
{
const
certified
=
await
this
.
server
.
dal
.
getWrittenIdtyByPubkeyForUidAndMemberAndCreatedOn
(
const
certified
=
await
this
.
server
.
dal
.
getWrittenIdtyByPubkeyForUidAndMemberAndCreatedOn
(
...
...
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