Skip to content

Conversation

@MEOHIN
Copy link
Collaborator

@MEOHIN MEOHIN commented Oct 2, 2025

📢 기능 설명

삭제된 댓글이 조회되는 오류를 해결했습니다.

연결된 issue

close #230



🩷 Approve 하기 전 확인해주세요!

  • CommentRepository
    • 댓글 무한 스크롤 조회 시 Soft Delete 정책에 따라 상태가 DELETED가 아닌 댓글만 조회하는 새로운 Repository 메서드를 추가했습니다.
  • CommentService
    1. 댓글 다건 조회 (getComments):
      • Repository의 ...AndStatusNotOrderByIdDesc 메서드를 사용하여 삭제된 댓글을 필터링하도록 변경했습니다.
    2. 댓글 단건 조회 (getComment):
      • 조회된 댓글의 상태가 DELETED인 경우 예외를 발생시켜 접근을 차단하도록 로직을 추가했습니다.
    3. 검증 로직 (findCommentWithValidation):
      • 댓글 수정/삭제 전 검증 단계에서 이미 삭제된 댓글에 대한 수정/삭제 시도를 차단하는 로직을 추가했습니다.

✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 이슈넘버를 적었는가?
  • Approve 하기 전 확인 사항 체크했는가?

@MEOHIN MEOHIN self-assigned this Oct 2, 2025
@MEOHIN MEOHIN added the fix 버그 수정 label Oct 2, 2025
@MEOHIN MEOHIN merged commit e8a08db into dev Oct 2, 2025
1 check passed
@MEOHIN MEOHIN deleted the feat#230 branch October 2, 2025 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 버그 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix] 삭제된 댓글이 조회되는 오류 해결

3 participants