diff --git a/src/main/java/com/example/codebase/domain/team/service/TeamUserService.java b/src/main/java/com/example/codebase/domain/team/service/TeamUserService.java index d588a8ec..92dbe833 100644 --- a/src/main/java/com/example/codebase/domain/team/service/TeamUserService.java +++ b/src/main/java/com/example/codebase/domain/team/service/TeamUserService.java @@ -78,7 +78,7 @@ public void updateTeamUser(TeamUser member, TeamUser changeMember, TeamUserReque throw new RuntimeException("본인 또는 팀장만 정보를 수정할 수 있습니다."); } - member.update(request); - teamUserRepository.save(member); + changeMember.update(request); + teamUserRepository.save(changeMember); } }