From cb323069676dade74a0cb2fd7a689e41d43efde2 Mon Sep 17 00:00:00 2001 From: Zena0128 <0128ja@gmail.com> Date: Mon, 19 Feb 2024 12:17:22 +0900 Subject: [PATCH] =?UTF-8?q?:bug:Fix:=20=EC=97=85=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8=EA=B0=80=20=EC=A0=95=EC=83=81=EC=A0=81=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B0=98=EC=98=81=EB=90=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../timetris/domain/mainpage/service/DoServiceImpl.java | 1 + .../timetris/domain/mainpage/service/PlanServiceImpl.java | 1 + .../timetris/domain/mainpage/service/SeeServiceImpl.java | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/java/com/trendithon/timetris/domain/mainpage/service/DoServiceImpl.java b/src/main/java/com/trendithon/timetris/domain/mainpage/service/DoServiceImpl.java index 5a3727f..396783c 100644 --- a/src/main/java/com/trendithon/timetris/domain/mainpage/service/DoServiceImpl.java +++ b/src/main/java/com/trendithon/timetris/domain/mainpage/service/DoServiceImpl.java @@ -50,6 +50,7 @@ public void updateDo(long userId, long doId, DoRequestDTO doRequestDTO) { Category category = categoryRepository.findById(doRequestDTO.getCategoryId()) .orElseThrow(() -> new CustomException(ErrorStatus.CATEGORY_NOT_FOUND_ERROR)); done.updateDo(doRequestDTO.getTitle(), doRequestDTO.getStartTime(), doRequestDTO.getEndTime(), category); + doRepository.save(done); } @Override diff --git a/src/main/java/com/trendithon/timetris/domain/mainpage/service/PlanServiceImpl.java b/src/main/java/com/trendithon/timetris/domain/mainpage/service/PlanServiceImpl.java index 805ec1c..ab728ec 100644 --- a/src/main/java/com/trendithon/timetris/domain/mainpage/service/PlanServiceImpl.java +++ b/src/main/java/com/trendithon/timetris/domain/mainpage/service/PlanServiceImpl.java @@ -50,6 +50,7 @@ public void updatePlan(long userId, long planId, PlanRequestDTO planRequestDTO) throw new CustomException(ErrorStatus.NO_PERMISSION_ERROR); } plan.updatePlan(planRequestDTO.getTitle(), planRequestDTO.getStartTime(), planRequestDTO.getEndTime(), category); + planRepository.save(plan); } @Override diff --git a/src/main/java/com/trendithon/timetris/domain/mainpage/service/SeeServiceImpl.java b/src/main/java/com/trendithon/timetris/domain/mainpage/service/SeeServiceImpl.java index dc4583c..9947316 100644 --- a/src/main/java/com/trendithon/timetris/domain/mainpage/service/SeeServiceImpl.java +++ b/src/main/java/com/trendithon/timetris/domain/mainpage/service/SeeServiceImpl.java @@ -45,6 +45,7 @@ public void updateSee(long userId, long seeId, SeeRequestDTO seeRequestDTO) { throw new CustomException(ErrorStatus.NO_PERMISSION_ERROR); } see.updateSee(seeRequestDTO.getContent()); + seeRepository.save(see); } @Override