-
Notifications
You must be signed in to change notification settings - Fork 0
feat : 좋아요 api 구현 #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat : 좋아요 api 구현 #174
Conversation
dev2yup
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니당
| () -> | ||
| new BaseCustomException( | ||
| HistoryErrorCode | ||
| .HISTORY_NOT_FOUND)); // 💡 예외 통일성 유지 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이부분 주석은 지워야할 것 같습니당
|
|
||
| private boolean isBlockedByOrBlocking(Long fromId, Long toId) { | ||
| return blockRepository.existsByBlockerIdAndBlockedId(fromId, toId) | ||
| || blockRepository.existsByBlockerIdAndBlockedId(toId, fromId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 부분 db 접근이 두번 발생하는데
or 쿼리로 한번에 해결하는 방법도 괜찮을 것 같아요
| HistoryErrorCode | ||
| .HISTORY_NOT_FOUND)); // 💡 예외 통일성 유지 | ||
|
|
||
| final Member historyOwner = history.getMember(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 lazy loading 돼있으니까 n+1문제 땜에
history랑 member랑 fetch join해서 한번에 갖고 오는게 좋겠습니다!!
|



📌 연관 이슈
🌱 PR 요약
🛠 작업 내용
📸 스크린샷
❗️리뷰어들께