Skip to content

Commit

Permalink
#212 Remove Transactional annotation from
Browse files Browse the repository at this point in the history
updateMediaFile method
  • Loading branch information
kagemomiji committed Dec 1, 2023
1 parent 0406d1b commit 2ae99b5
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Sort.Direction;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;

Expand Down Expand Up @@ -1299,7 +1298,6 @@ public void setMetaDataParserFactory(MetaDataParserFactory metaDataParserFactory
@Caching(evict = {
@CacheEvict(cacheNames = "mediaFilePathCache", key = "#mediaFile.path.concat('-').concat(#mediaFile.folder.id).concat('-').concat(#mediaFile.startPosition == null ? '' : #mediaFile.startPosition.toString())"),
@CacheEvict(cacheNames = "mediaFileIdCache", key = "#mediaFile.id", condition = "#mediaFile.id != null") })
@Transactional(isolation = Isolation.READ_COMMITTED)
public void updateMediaFile(MediaFile mediaFile) {
if (mediaFile == null) {
throw new IllegalArgumentException("mediaFile must not be null");
Expand Down

0 comments on commit 2ae99b5

Please sign in to comment.