Skip to content

Commit

Permalink
hotfix: 폴더 내 픽 리스트 조회 read_uncommited로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwonsheep committed Dec 12, 2024
1 parent 107da07 commit 71e51e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -82,7 +83,7 @@ public List<PickResult.Pick> getFolderChildPickList(Long userId, Long folderId)
}

// 폴더 리스트가 넘어오면, 각 폴더 내부에 있는 픽 리스트 조회
@Transactional(readOnly = true)
@Transactional(isolation = Isolation.READ_UNCOMMITTED, readOnly = true)
public List<PickResult.FolderPickWithViewCountList> getFolderListChildPickList(PickCommand.ReadList command) {
return command.folderIdList().stream()
.peek(folderId -> validateFolderAccess(command.userId(), folderId)) // 폴더 접근 유효성 검사
Expand Down

0 comments on commit 71e51e4

Please sign in to comment.