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

[FEAT/#90] 인증 동네 삭제 API 구현 #91

Merged
merged 3 commits into from
Feb 18, 2025
Merged

[FEAT/#90] 인증 동네 삭제 API 구현 #91

merged 3 commits into from
Feb 18, 2025

Conversation

ckkim817
Copy link
Member

@ckkim817 ckkim817 commented Feb 18, 2025

💡 Issue

📸 Screenshot

image image image

📄 Description

  • 인증 동네 삭제 API를 구현했습니다.

💬 To Reviewers

  • 인증 동네 개수 셀 때 MemberId에 해당하는 VerifiedAreaEntity들을 findAll해서 List size를 계산하는 방식에서 JPA 메서드 중 countBy를 사용하는 방식으로 변경했습니다.

@ckkim817 ckkim817 added ✨ FEAT 새로운 기능 추가 🐈‍⬛ 창균 labels Feb 18, 2025
@ckkim817 ckkim817 self-assigned this Feb 18, 2025
@ckkim817 ckkim817 requested a review from gahyuun as a code owner February 18, 2025 17:15
@gahyuun gahyuun added the size/S label Feb 18, 2025
@ckkim817 ckkim817 merged commit 9b8564b into develop Feb 18, 2025
1 check passed
@ckkim817 ckkim817 deleted the feat/#90 branch February 18, 2025 19:08
Copy link
Collaborator

@gahyuun gahyuun left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~!

boolean existsByMemberIdAndName(Long memberId, String name);

Optional<VerifiedAreaEntity> findById(Long id);
Copy link
Collaborator

@gahyuun gahyuun Feb 19, 2025

Choose a reason for hiding this comment

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

Q2: 해당 메서드를 꼭 명시해 줘야 하나요!? findById는 직접 작성하지 않아도 JpaRepository에 존재하는 거 아니었나요!?

Copy link
Member Author

Choose a reason for hiding this comment

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

어머 마자요 orElseThrow 메서드 만드는 데만 집중하느라 까묵은 마이 미스테이크 .. 수정해놓겠습니다

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.

[FEAT] 인증 동네 삭제 API 구현
2 participants