Skip to content

Commit

Permalink
Add missing transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
amarsan committed Nov 14, 2024
1 parent e89e4ab commit 3d8f33d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.springframework.core.convert.ConversionService;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.support.TransactionTemplate;

import java.util.ArrayList;
Expand Down Expand Up @@ -73,6 +74,7 @@ public void warm(Source source) {
}
}

@Transactional()
public void clearCache(Source source) {
cdmCacheRepository.deleteBySource(source.getSourceId());
}
Expand Down

0 comments on commit 3d8f33d

Please sign in to comment.