Skip to content

fix: 회원탈퇴 시 게시글 조회 기록 삭제 처리 - #56

Merged
devlearner2804 merged 1 commit into
developfrom
fix/withdraw-postview
Aug 20, 2026
Merged

fix: 회원탈퇴 시 게시글 조회 기록 삭제 처리#56
devlearner2804 merged 1 commit into
developfrom
fix/withdraw-postview

Conversation

@devlearner2804

Copy link
Copy Markdown
Contributor

📌 변경 사항

  • 회원탈퇴 시 사용자가 작성한 게시글의 조회 기록(PostView)을 먼저 삭제하도록 수정
  • PostViewRepository에 작성자 기준 조회 기록 삭제 메서드 추가

🐛 문제 원인

  • 회원탈퇴 과정에서 사용자의 게시글을 삭제할 때 post_view 테이블이 해당 게시글을 참조하고 있어 FK 제약조건 오류가 발생
  • 이로 인해 게시글 및 회원 삭제가 정상적으로 처리되지 않음

🔧 해결

  • 게시글 삭제 전에 해당 사용자가 작성한 게시글의 PostView 데이터를 먼저 삭제하도록 처리

✅ 테스트

  • .\gradlew build -x test 빌드 성공

@devlearner2804 devlearner2804 self-assigned this Aug 20, 2026
@devlearner2804 devlearner2804 added the fix Improvements or additions to documentation label Aug 20, 2026
@devlearner2804
devlearner2804 merged commit 577f84e into develop Aug 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants