Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ public void update(Long userId, Long bookmarkId, BookmarkUpdateRequest request,

if (request.title() != null && !request.title().trim().isEmpty()) {
bookmark.updateTitle(request.title());
updated = true;
}
if (request.memo() != null) {
bookmark.updateMemo(request.memo());
updated = true;
}

if (request.file() != null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

updated = true;로 값이 수정이 안되는 부분도 있네요 확인부탁드려요

Copy link
Collaborator

Choose a reason for hiding this comment

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

또한 해당 메소드 마지막에 있는 updated 값이 false일 때 커스텀 예외처리 부탁드립니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넵 수정했습니다

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,8 @@ public void updateUrl(String url) {
public void updateCategory(Category category) {
this.category = category;
}

public void updateMemo(String memo) {
this.memo = memo;
}
}