Skip to content

Commit

Permalink
fix: 당일 일기 재작성시 캘린더뷰 diaryCount 미반영 수정 (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyukjinKimm authored Aug 24, 2024
1 parent 216a888 commit e37f443
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ private void setIsDeleted(int year, int month, List<DiarySimpleInfo> diarySimple
for (int day = 1; day <= daysInMonth; day++) {
LocalDate date = yearMonth.atDay(day);
if (isDeleted(date)) {
DiarySimpleInfo diarySimpleInfo = DiarySimpleInfo.of(0, ReplyStatus.UNREADY, true);
DiarySimpleInfo diarySimpleInfo = DiarySimpleInfo.of(diarySimpleInfos.get(day-1).diaryCount(), ReplyStatus.UNREADY, true);
diarySimpleInfos.set(date.getDayOfMonth() - 1, diarySimpleInfo);
}
}
Expand Down

0 comments on commit e37f443

Please sign in to comment.