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