From e37f4439a3169d6608200d0cb8b1d0c9c052dc39 Mon Sep 17 00:00:00 2001 From: hyuk jin Kim Date: Sat, 24 Aug 2024 18:59:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8B=B9=EC=9D=BC=20=EC=9D=BC=EA=B8=B0?= =?UTF-8?q?=20=EC=9E=AC=EC=9E=91=EC=84=B1=EC=8B=9C=20=EC=BA=98=EB=A6=B0?= =?UTF-8?q?=EB=8D=94=EB=B7=B0=20diaryCount=20=EB=AF=B8=EB=B0=98=EC=98=81?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20(#152)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../donkeys_today/server/application/diary/DiaryService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/donkeys_today/server/application/diary/DiaryService.java b/src/main/java/com/donkeys_today/server/application/diary/DiaryService.java index 8c73c51f..fe768af2 100644 --- a/src/main/java/com/donkeys_today/server/application/diary/DiaryService.java +++ b/src/main/java/com/donkeys_today/server/application/diary/DiaryService.java @@ -281,7 +281,7 @@ private void setIsDeleted(int year, int month, List 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); } }