-
Notifications
You must be signed in to change notification settings - Fork 6
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
[BE] 체크리스트 지하철 정보 저장 시 위도, 경도가 NULL 인 경우도 허용한다. #1065
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.
카피 수고많으셨어요 👍
바꿀 때 수정 API도 함께 변경해줘야 될 것 같아요~
if (latitude == null || longitude == null) { | ||
return; | ||
} |
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.
수정 API에서는 여기서 null로 저장되어야하지 않을까요?? 지금은 그냥 return되고 있어 수정사항이 반영되지 않을 것 같아요!
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.
확인해봤는데 체크리스트 수정할 때 updateChecklistByIdV1
메서드에서 이미 room 정보를 통째로 수정해서 위도, 경도가 변경된 값으로 초기화 되더라고요! 그래서 처리하지 않아도 될 것 같습니다!
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.
room 정보말고 지하철 정보를 말한 거였어요! checklist_station은 그대로이지 않나요 🤔
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.
checklistStation도 다시 새로운 지하철 정보 저장하기 전에 32번째 줄에 checklistStationRepository.deleteAllByChecklistId(checklist.getId())
호출해 초기화해줘서
새로운 지하철 정보로 바뀌어서 문제 없을 것 같습니다!
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.
테스트 결과를 잘못보고 있엇네요,,ㅎㅎ 고생하셨습니다 👍
❗ Issue
✨ 구현한 기능
📢 논의하고 싶은 내용
🎸 기타