Skip to content

Commit

Permalink
Fix : 다이어리 장소 글자수 수정 (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Astin01 authored Sep 22, 2024
1 parent 0fdd62f commit 87c65d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void updateDiary(Long userId, Long diaryId, DiaryUpdateRequest request) {
}

private void updateDiary(Long diaryId, DiaryUpdateRequest request) {
Diary diary = diaryRepository.findById(diaryId).orElseThrow(() -> new RuntimeException("Diary not found"));
Diary diary = diaryRepository.findById(diaryId).orElseThrow(() -> new DiaryNotExistsException("해당 일기가 존재하지 않습니다."));
deleteDiaryImage(request);
diary.getDiaryDayContent().clear();
diary.updateDiary(request);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ CREATE TABLE `diary_day_content`
(
`diary_day_content_id` BIGINT NOT NULL AUTO_INCREMENT,
`diary_id` BIGINT NOT NULL,
`diary_day_content_place` VARCHAR(20) NOT NULL,
`diary_day_content_place` VARCHAR(50) NOT NULL,
`diary_day_content_content` TEXT NOT NULL,
`diary_day_content_feeling_status` VARCHAR(20) NOT NULL,
`diary_day_content_image` TEXT DEFAULT NULL,
Expand Down

0 comments on commit 87c65d1

Please sign in to comment.