Skip to content

Commit

Permalink
Version upate to v2.0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
kipliklotrika committed Nov 21, 2018
2 parents cbfe790 + 66b94bb commit 7213b2b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions modules/GS1Importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,13 +684,15 @@ class GS1Importer {
const object_key = vertex._key;
const id_key = this.helper.createKey('identifier', sender, id_type, id_value);

identifiers.push({
_key: id_key,
id_type,
id_value,
vertex_type: 'IDENTIFIER',
sender_id: senderId,
});
if (!identifiers.find(el => el._key === id_key)) {
identifiers.push({
_key: id_key,
id_type,
id_value,
vertex_type: 'IDENTIFIER',
sender_id: senderId,
});
}

identifierEdges.push({
_key: this.helper.createKey('identifies', sender, id_key, vertex.identifiers.uid),
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origintrail_node",
"version": "2.0.22",
"version": "2.0.23",
"description": "OriginTrail node",
"main": ".eslintrc.js",
"config": {
Expand Down

0 comments on commit 7213b2b

Please sign in to comment.