From 2a93f3a67cdaf14645058a697d52622e5c267e8d Mon Sep 17 00:00:00 2001 From: jusung-c Date: Fri, 17 Nov 2023 18:34:12 +0900 Subject: [PATCH] =?UTF-8?q?refactor(#104):=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=EB=95=8C=EB=AC=B8=EC=97=90=20=EC=A3=BC=EC=84=9D=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=ED=96=88=EB=8D=98=20=EB=B6=80=EB=B6=84=20=ED=95=B4?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/housework/info/HouseworkInfoService.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/heachi-core/housework-api/src/main/java/com/heachi/housework/api/service/housework/info/HouseworkInfoService.java b/heachi-core/housework-api/src/main/java/com/heachi/housework/api/service/housework/info/HouseworkInfoService.java index d63e9d38..b71a429a 100644 --- a/heachi-core/housework-api/src/main/java/com/heachi/housework/api/service/housework/info/HouseworkInfoService.java +++ b/heachi-core/housework-api/src/main/java/com/heachi/housework/api/service/housework/info/HouseworkInfoService.java @@ -175,12 +175,12 @@ public void deleteHouseworkInfo(HouseworkInfoDeleteRequest request) { requestTodo.deleteHouseworkTodo(); // 요청 날짜의 todoList를 조회 후 dirtyBit 체킹 -// todoListRepository.findByGroupInfoIdAndDate(groupId, requestDate) -// .ifPresent(todoList -> { -// todoList.checkDirtyBit(); -// todoListRepository.save(todoList); -// log.info(">>>> dirtyBit Checking TodoList id: {}", todoList.getId()); -// }); + todoListRepository.findByGroupInfoIdAndDate(groupId, requestDate) + .ifPresent(todoList -> { + todoList.checkDirtyBit(); + todoListRepository.save(todoList); + log.info(">>>> dirtyBit Checking TodoList id: {}", todoList.getId()); + }); // 비단건 집안일(HOUSEWORK_PERIOD_DAY를 제외한 모든 경우)이고 반복되는 모든 건을 삭제하고 싶을 경우 } else if (deleteType == HouseworkInfoDeleteType.ALL) {