From 3d8f33d7d2036e4a6acb43ac75e912ce852c2867 Mon Sep 17 00:00:00 2001 From: Anne Marsan Date: Thu, 14 Nov 2024 12:22:48 -0500 Subject: [PATCH] Add missing transaction --- .../org/ohdsi/webapi/cdmresults/service/CDMCacheService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/ohdsi/webapi/cdmresults/service/CDMCacheService.java b/src/main/java/org/ohdsi/webapi/cdmresults/service/CDMCacheService.java index 106c4775d..dd732220b 100644 --- a/src/main/java/org/ohdsi/webapi/cdmresults/service/CDMCacheService.java +++ b/src/main/java/org/ohdsi/webapi/cdmresults/service/CDMCacheService.java @@ -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; @@ -73,6 +74,7 @@ public void warm(Source source) { } } + @Transactional() public void clearCache(Source source) { cdmCacheRepository.deleteBySource(source.getSourceId()); }