Skip to content

Commit

Permalink
chore: @ Transactional(readOnly = true) 추가 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeong-hyeok committed Nov 22, 2023
1 parent 34715ad commit cdfd110
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public List<IntermediaryGetDogStatusesResponse> getIntermediaryDogStatuses(Long
return intermediaryDogStatuses;
}

@Transactional(readOnly = true)
public IntermediaryGetHomeResponse getIntermediaryHome(String email) {
Intermediary intermediary = intermediaryRepository.findByEmail(email).orElseThrow(() -> new BadRequestException(INTERMEDIARY_NOT_FOUND));
Map<PostStatus, Long> countOfPostStatus = customPostRepository.getCountOfPostStatus(intermediary.getId(), null);
Expand Down

0 comments on commit cdfd110

Please sign in to comment.