Skip to content

Commit

Permalink
✏️ [FIX] if 문 수정 #11
Browse files Browse the repository at this point in the history
  • Loading branch information
eeddiinn committed Jan 10, 2024
1 parent 301ff1e commit 9147410
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public static MypageNoteResponseDto of(Note note) {
if (background.endsWith(".jpg")) {
return new MypageNoteResponseDto(note.getBook().getUuid(), note.getBook().getTitle(),
note.getId(), note.getContent(), noteDate, -1, background);
} else {
return new MypageNoteResponseDto(note.getBook().getUuid(), note.getBook().getTitle(),
note.getId(), note.getContent(), noteDate, Integer.parseInt(background), "");
}
return new MypageNoteResponseDto(note.getBook().getUuid(), note.getBook().getTitle(),
note.getId(), note.getContent(), noteDate, Integer.parseInt(background), "");

}
}

0 comments on commit 9147410

Please sign in to comment.