[COMMUNITY] 게시글 수정, 삭제 안되는 문제 해결 #70
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 Pull Request
📜 PR 내용 요약
필드명 불일치 문제 해결 및 불필요한 관리자 엔드포인트 제거
사용자 인증 관련 필드명이 변경되면서 발생한 게시글/댓글 작성자 확인 로직 오류를 수정하고, 더 이상 사용하지 않는 관리자용 임시 엔드포인트를 정리했습니다.
⚒️ 작업 및 변경 내용(상세하게)
🔧 필드명 수정
게시글 작성자 확인 로직 수정
post.userName→post.writer로 변경post-detail.html,edit-qna.js,edit-review.js,edit-showoff.js댓글 작성자 확인 로직 수정
comment.userName→comment.writer로 변경post-detail.html🗑️ 코드 정리
PostController.java에서updateAllPostCounts()메서드 삭제@PostMapping("/update-counts")엔드포인트 제거🐛 해결된 버그
📚 기타 참고 사항
🔍 리뷰 포인트
writer)을 사용하는지 확인🧪 테스트 방법