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

refactor : Hive 유저 탈퇴시 호스트 는 탈퇴불가 설정 예외처리 추가 #112

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

kdy9960
Copy link
Collaborator

@kdy9960 kdy9960 commented Jan 31, 2024

No description provided.

@kdy9960 kdy9960 added this to the 보드 API 기능 구현 milestone Jan 31, 2024
@kdy9960 kdy9960 self-assigned this Jan 31, 2024
if (user.getId().equals(hive.getId())) {
throw new HostNotResignHiveException();
}

Copy link
Contributor

Choose a reason for hiding this comment

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

엇 이러면 하이브 객체 아이디와 유저 객체 아이디를 비교하는 게 아닌가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

네 맞네요
이러면 아이디 순서대로 작성했던거랑 하이브 순서대로 만든거에대한 비교가 되버려서 잘못된거더군요
creatorId와 비교해서삭제가 안되겠끔 다시 수정했습니다.

Copy link
Contributor

Choose a reason for hiding this comment

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

빠른 피드백 감사합니다!

if (user.getId().equals(hive.getId())) {
throw new HostNotResignHiveException();
}

Copy link
Contributor

Choose a reason for hiding this comment

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

빠른 피드백 감사합니다!

@mixedtape mixedtape merged commit 00639a5 into dev Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants