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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
e3a5aa45
Commit
e3a5aa45
authored
8 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[fix] #1008 Could not record and publish self peer
parent
f7d4c4a8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/lib/dal/sqliteDAL/AbstractSQLite.js
+4
-1
4 additions, 1 deletion
app/lib/dal/sqliteDAL/AbstractSQLite.js
app/lib/entity/peer.js
+4
-0
4 additions, 0 deletions
app/lib/entity/peer.js
with
8 additions
and
1 deletion
app/lib/dal/sqliteDAL/AbstractSQLite.js
+
4
−
1
View file @
e3a5aa45
...
@@ -264,7 +264,10 @@ function AbstractSQLite(driver) {
...
@@ -264,7 +264,10 @@ function AbstractSQLite(driver) {
}
}
function
toRow
(
entity
)
{
function
toRow
(
entity
)
{
let
row
=
_
.
clone
(
entity
);
let
row
=
{};
for
(
const
f
of
that
.
fields
)
{
row
[
f
]
=
entity
[
f
]
}
for
(
const
arr
of
that
.
arrays
)
{
for
(
const
arr
of
that
.
arrays
)
{
row
[
arr
]
=
JSON
.
stringify
(
row
[
arr
]
||
[]);
row
[
arr
]
=
JSON
.
stringify
(
row
[
arr
]
||
[]);
}
}
...
...
This diff is collapsed.
Click to expand it.
app/lib/entity/peer.js
+
4
−
0
View file @
e3a5aa45
...
@@ -13,6 +13,10 @@ function Peer(json) {
...
@@ -13,6 +13,10 @@ function Peer(json) {
this
[
key
]
=
json
[
key
];
this
[
key
]
=
json
[
key
];
});
});
// block == blockstamp
this
.
blockstamp
=
this
.
blockstamp
||
this
.
block
this
.
block
=
this
.
block
||
this
.
blockstamp
this
.
endpoints
=
this
.
endpoints
||
[];
this
.
endpoints
=
this
.
endpoints
||
[];
this
.
statusTS
=
this
.
statusTS
||
0
;
this
.
statusTS
=
this
.
statusTS
||
0
;
...
...
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