From 71e51e4942fad2c19007655d5608432311308f19 Mon Sep 17 00:00:00 2001 From: sangwonsheep Date: Thu, 12 Dec 2024 10:42:49 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=ED=8F=B4=EB=8D=94=20=EB=82=B4=20?= =?UTF-8?q?=ED=94=BD=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?read=5Funcommited=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/techpick/api/domain/pick/service/PickService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/techpick-api/src/main/java/techpick/api/domain/pick/service/PickService.java b/backend/techpick-api/src/main/java/techpick/api/domain/pick/service/PickService.java index 4103223a6..0587c50d1 100644 --- a/backend/techpick-api/src/main/java/techpick/api/domain/pick/service/PickService.java +++ b/backend/techpick-api/src/main/java/techpick/api/domain/pick/service/PickService.java @@ -9,6 +9,7 @@ import org.apache.commons.lang3.ObjectUtils; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Isolation; import org.springframework.transaction.annotation.Transactional; import lombok.RequiredArgsConstructor; @@ -82,7 +83,7 @@ public List getFolderChildPickList(Long userId, Long folderId) } // 폴더 리스트가 넘어오면, 각 폴더 내부에 있는 픽 리스트 조회 - @Transactional(readOnly = true) + @Transactional(isolation = Isolation.READ_UNCOMMITTED, readOnly = true) public List getFolderListChildPickList(PickCommand.ReadList command) { return command.folderIdList().stream() .peek(folderId -> validateFolderAccess(command.userId(), folderId)) // 폴더 접근 유효성 검사