Skip to content

Commit

Permalink
Fix update errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AstrorEnales committed Jun 16, 2021
1 parent eb719cd commit 1d1725d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ private HashMap<Long, Long> createNeo4jNodes(final Graph graph) {
for (final String propertyKey : node.keySet())
setPropertySafe(node, neo4jNode, propertyKey);
nodeIdNeo4jIdMap.put(node.getId(), neo4jNode.getId());
for (final String label : node.getLabels())
neo4jNode.addLabel(Label.label(label));
neo4jNode.addLabel(Label.label(node.getLabel()));
}
}));
return nodeIdNeo4jIdMap;
Expand Down Expand Up @@ -151,7 +150,7 @@ private void setPropertySafe(final Node node, final org.neo4j.graphdb.Node neo4j
if (LOGGER.isWarnEnabled())
LOGGER.warn(
"Illegal property '" + propertyKey + " -> " + node.getProperty(propertyKey) + "' for node '" +
node.getId() + "[" + String.join(":", node.getLabels()) + "]'");
node.getId() + "[:" + node.getLabel() + "]'");
}
}

Expand Down

0 comments on commit 1d1725d

Please sign in to comment.