Skip to content
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

fix: 카테고리 이름 중복으로 인한 에러 처리 해결 #179

Merged
merged 1 commit into from
Sep 21, 2024

Conversation

soonga00
Copy link
Contributor

@soonga00 soonga00 commented Jul 22, 2024

✅ PR 타입(하나 이상의 PR 타입을 선택해주세요)

  • 기능 추가
  • 기능 변경
  • 기능 삭제
  • 버그 수정
  • 의존성, 환경 변수, 빌드 관련 코드 업데이트

📌 관련 이슈

closed #178

✨ 과제 내용

카테고리를 이름 수정 없이 색상이나 타입만 수정했을 때,
중복된 카테고리라고 인식하게 되어 발생하는 에러였습니다.
해결을 위해 request로 받은 카테고리 이름이 null이 아니고 조회해온 카테고리와 이름이 "같지 않을 때"에만 이름 중복 여부를 확인하도록 수정하였습니다.

📸 스크린샷(선택)

📚 레퍼런스 (또는 새로 알게 된 내용) 혹은 궁금한 사항들

@soonga00 soonga00 requested a review from baebae02 July 22, 2024 07:03
@soonga00 soonga00 self-assigned this Jul 22, 2024
@soonga00 soonga00 linked an issue Jul 22, 2024 that may be closed by this pull request
2 tasks
@soonga00 soonga00 requested review from graS2e and Sion99 and removed request for baebae02 July 22, 2024 07:04
@soonga00 soonga00 added the ✅해결 각종 오류 및 문제를 해결했을 때 label Jul 22, 2024
Copy link
Member

@baebae02 baebae02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ~ 👍🏻

Copy link
Member

@Sion99 Sion99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다!

@dong2ast dong2ast merged commit 1bd98ad into main Sep 21, 2024
1 check passed
@dong2ast dong2ast deleted the fix/put-category-categoryId branch September 21, 2024 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅해결 각종 오류 및 문제를 해결했을 때
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: PUT /category/{categoryId} 관련 에러
4 participants