Skip to content

Commit

Permalink
Merge pull request #719 from amvanbaren/bugfix/issue-718
Browse files Browse the repository at this point in the history
Merge ExtensionVersion before persisting FileResource
  • Loading branch information
amvanbaren authored Mar 31, 2023
2 parents cdf9e01 + 7446bc6 commit b3f3657
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void mirrorResource(FileResource resource) {

@Transactional
public void persistResource(FileResource resource) {
resource.setExtension(entityManager.merge(resource.getExtension()));
entityManager.persist(resource);
}

Expand Down

0 comments on commit b3f3657

Please sign in to comment.