Skip to content

Commit

Permalink
#4869 - Cannot re-merge curation document
Browse files Browse the repository at this point in the history
- Remove document from disk before writing the re-merged version to avoid timestamp conflicts
  • Loading branch information
reckart committed Jun 11, 2024
1 parent d40cfcf commit f7f20a3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ private CAS readCurationCas(AnnotatorState aState, SourceDocument aDocument,
aTemplate.getUser(), FORCE_CAS_UPGRADE, UNMANAGED_ACCESS);
curationMergeService.mergeCasses(aState.getDocument(), aState.getUser().getUsername(),
mergeCas, aCasses, aMergeStrategy, aState.getAnnotationLayers(), true);
curationDocumentService.deleteCurationCas(aDocument);
curationDocumentService.writeCurationCas(mergeCas, aTemplate.getDocument(), false);
}
else {
Expand Down

0 comments on commit f7f20a3

Please sign in to comment.