Skip to content

Conversation

@juuuuone
Copy link
Collaborator

📌 연관 이슈

🌱 PR 요약

🛠 작업 내용

  • 기록에 좋아요를 토글할 수 있는 좋아요 api 구현
  • 차단한 회원의 경우 별도의 예외처리 없이 리턴

📸 스크린샷

❗️리뷰어들께

@juuuuone juuuuone linked an issue Dec 29, 2025 that may be closed by this pull request
Copy link
Collaborator

@dev2yup dev2yup left a 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)); // 💡 예외 통일성 유지
Copy link
Collaborator

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);
Copy link
Collaborator

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();
Copy link
Collaborator

@dev2yup dev2yup Jan 1, 2026

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해서 한번에 갖고 오는게 좋겠습니다!!

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 2, 2026

@juuuuone juuuuone merged commit e25eff1 into develop Jan 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 좋아요 api 구현

3 participants