From d5997ee37949c7d4571705ca7ed643b1d070aa8c Mon Sep 17 00:00:00 2001 From: yeonjy Date: Tue, 19 Mar 2024 18:06:12 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20@Transactional=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/domain/member/service/MemberService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/core/src/main/java/com/rollthedice/backend/domain/member/service/MemberService.java b/backend/core/src/main/java/com/rollthedice/backend/domain/member/service/MemberService.java index f41faeb4..23233ae1 100644 --- a/backend/core/src/main/java/com/rollthedice/backend/domain/member/service/MemberService.java +++ b/backend/core/src/main/java/com/rollthedice/backend/domain/member/service/MemberService.java @@ -5,12 +5,14 @@ import com.rollthedice.backend.domain.member.query.AuthService; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; @RequiredArgsConstructor @Service public class MemberService { private final AuthService authService; + @Transactional public void signUp(SignUpDto dto) { Member member = authService.getMember(); member.updateNickname(dto.getNickname());