-
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
단일 ToDo 수정 API 구현 #59
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.
고생하셨습니다 리뷰단거 고치고 머지하면 될 것 같습니당
@Override | ||
public ToDo update(final ToDo toDo){ | ||
ToDoEntity toDoEntity = toDoJpaRepository.save(ToDoEntity.withId(toDo)); | ||
toDoEntity.update( |
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.
서비스에서 업데이트 되어 어댑터로 전달되었으니 추가적인 업데이트는 없어도 될 듯 합니다
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.
최종적으로 엔티티도 업데이트 된 값들이 저장 되어야 된다고 생각해서 엔티티 수정하는 로직을 추가했습니다!
@Override | ||
public ToDoTag update(final ToDoTag toDoTag) { | ||
ToDoTagEntity toDoTagEntity = toDoTagJpaRepository.save(ToDoTagEntity.withId(toDoTag)); | ||
toDoTagEntity.updateTag( |
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.
투두어댑터에서 단 리뷰내용과 동일합니다
✨ Related Issue
📝 기능 구현 명세
🐥 추가적인 언급 사항