Skip to content

Commit

Permalink
[FIX] On node merge, If no fields are provided, do nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementBareth committed Apr 21, 2023
1 parent 7bc8db9 commit 855f9c8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,11 @@ public String mergeNode(String neo4JConfiguration, String cetCode, Map<String, O
Set<String> fieldsKeys = new HashSet<>(uniqueFields.keySet());
Map<String, Object> fieldValues = new HashMap<>();

// If no fields are provided and we know the node already exist, do nothing
if (uniqueFields.isEmpty() && updatableFields.isEmpty() && uuid != null) {
return uuid;
}

if (uniqueFields.isEmpty()) {
if (uuid != null) {
fieldsKeys.add("meveo_uuid");
Expand Down

0 comments on commit 855f9c8

Please sign in to comment.