Skip to content

Commit

Permalink
[rF3PTDby] Fix shouldFindDifferencesInTheSameDb (#3568)
Browse files Browse the repository at this point in the history
  • Loading branch information
vga91 authored May 29, 2023
1 parent 0b682c1 commit 4a92bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion full/src/main/java/apoc/diff/DiffFull.java
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ private Node findNode(Iterable<Node> it, Node node, SubGraph graph, DiffConfig c
return config.isFindById() ? findEntityById(it, node.getId()) : null;
}
Map<String, Object> keys = getNodeKeys(node, constraintDefinition);
return StreamSupport.stream(it.spliterator(), true)
return StreamSupport.stream(it.spliterator(), false)
.filter(entity -> entity.getProperties(Iterables.asArray(String.class, keys.keySet())).equals(keys))
.findFirst()
.orElse(null);
Expand Down

0 comments on commit 4a92bc1

Please sign in to comment.