-
Notifications
You must be signed in to change notification settings - Fork 0
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
[feature/8-users-mypage] 구매자 프로필 수정 API 추가 #57
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍀
public void modifyProfile(Long userIdx, PatchProfileReq patchProfileReq) throws BaseException{ | ||
try { | ||
User user = userRepository.findById(userIdx).orElseThrow(() -> new BaseException(INVALID_USER_IDX)); | ||
if (patchProfileReq != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nickname이랑 profileImg 각각 null 체크하는 게 어떨까용??
둘 중 하나만 수정할 경우에는 null 체크해서 not null인 것만 수정하면 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오좋아용 변경했습니다-!
📚 이슈 번호
#8
💬 기타 사항