From cdfd1100681fb822cc1803df0ee3c27cef93a66b Mon Sep 17 00:00:00 2001 From: kyeong-hyeok Date: Wed, 22 Nov 2023 14:45:33 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20@=20Transactional(readOnly=20=3D=20tru?= =?UTF-8?q?e)=20=EC=B6=94=EA=B0=80=20(#141)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/intermediary/service/IntermediaryService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/pawwithu/connectdog/domain/intermediary/service/IntermediaryService.java b/src/main/java/com/pawwithu/connectdog/domain/intermediary/service/IntermediaryService.java index a4f9c171..6bebd3bc 100644 --- a/src/main/java/com/pawwithu/connectdog/domain/intermediary/service/IntermediaryService.java +++ b/src/main/java/com/pawwithu/connectdog/domain/intermediary/service/IntermediaryService.java @@ -80,6 +80,7 @@ public List getIntermediaryDogStatuses(Long return intermediaryDogStatuses; } + @Transactional(readOnly = true) public IntermediaryGetHomeResponse getIntermediaryHome(String email) { Intermediary intermediary = intermediaryRepository.findByEmail(email).orElseThrow(() -> new BadRequestException(INTERMEDIARY_NOT_FOUND)); Map countOfPostStatus = customPostRepository.getCountOfPostStatus(intermediary.getId(), null);