Skip to content

Commit f655f11

Browse files
authored
Merge pull request #188 from Travlocks/fix/#176-template
[fix] #176 AI 블록 추천 관련 문제 해결
2 parents 7c5e410 + 543275b commit f655f11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/umc/travlocksserver/domain/template/service/command/TemplateDayCommandService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.springframework.beans.factory.annotation.Value;
66
import org.springframework.data.domain.PageRequest;
77
import org.springframework.stereotype.Service;
8+
import org.springframework.transaction.annotation.Propagation;
89
import org.springframework.transaction.annotation.Transactional;
910
import org.umc.travlocksserver.domain.template.dto.response.VlockSuggestionsResponseDTO;
1011
import org.umc.travlocksserver.domain.template.entity.Template;
@@ -565,7 +566,8 @@ private List<Vlock> findNearVlocksByCenter(
565566
/**
566567
* 카카오맵 API로부터 Vlock들을 추가하는 메서드
567568
*/
568-
private void fetchFromExternal(Long templateId, LatLng center, Integer radiusKm) {
569+
@Transactional(propagation = Propagation.NOT_SUPPORTED)
570+
protected void fetchFromExternal(Long templateId, LatLng center, Integer radiusKm) {
569571
List<CityProjectionDTO> cities = templateCityQueryService.getCitiesByTemplateId(templateId);
570572
if (cities.isEmpty())
571573
return;

0 commit comments

Comments
 (0)