Skip to content

Commit

Permalink
Merge pull request #1989 from scireum/ili/SIRI-953
Browse files Browse the repository at this point in the history
Fixes skipped entities properly
  • Loading branch information
idlira authored May 10, 2024
2 parents 164a678 + 9a9ba52 commit 79b5d79
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,7 @@ protected boolean shouldSkip(E entity) {
if (mode == SyncMode.NEW_ONLY && !entity.isNew()) {
return true;
}
if (mode == SyncMode.UPDATE_ONLY && entity.isNew()) {
return true;
}
return mode != SyncMode.DELETE_EXISTING;
return mode == SyncMode.UPDATE_ONLY && entity.isNew();
}

/**
Expand Down

0 comments on commit 79b5d79

Please sign in to comment.