Skip to content

Commit

Permalink
update :: 공지 수정 api 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dkflfkd53 committed Sep 26, 2024
1 parent 9f0affd commit f0c56bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void editNotice(String noticeId, String title, String content) {
final var notice = noticeRepository.findById(noticeId)
.orElseThrow(()-> NoticeNotFoundException.EXCEPTION);

notice.editNotice(title, content);
noticeRepository.save(notice);
var newNotice = notice.editNotice(title, content);
noticeRepository.save(newNotice);
}
}

0 comments on commit f0c56bb

Please sign in to comment.