From 5ca3226dfac468fe61847a47e61e2640a44344ca Mon Sep 17 00:00:00 2001 From: s-choi Date: Thu, 24 Sep 2026 10:41:38 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20user=E3=81=AB=E7=9B=AE=E6=A8=99?= =?UTF-8?q?=E3=81=8C=E7=B4=90=E3=81=A5=E3=81=91=E3=82=89=E3=82=8C=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/app/domain/service/impl/UserServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java b/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java index 6aa541c..bba298a 100644 --- a/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java +++ b/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java @@ -45,13 +45,11 @@ public class UserServiceImpl implements UserService { GoalEntity goalEntity = new GoalEntity(); goalEntity.setTargetAmount(Integer.parseInt(String.valueOf(userForm.getGoalId()))); - goalRepository.save( - goalEntity); - CourseEntity courseEntity = courseRepository.findById(courseId).orElse(null); userEntity.setQuestionEntity(questionEntity); - userEntity.setGoalEntity(goalEntity); + userEntity.setGoalEntity(goalRepository.save( + goalEntity)); userEntity.setCourseEntity(courseEntity); userEntity.setDeleteFlag(0);