From e08516465fee65608028449cba9e6e2e2b8d045f Mon Sep 17 00:00:00 2001 From: kang Date: Sun, 22 Sep 2024 09:44:05 +0900 Subject: [PATCH] chore: set response dto --- src/main/java/co/orange/ddanzi/service/auth/AuthService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/co/orange/ddanzi/service/auth/AuthService.java b/src/main/java/co/orange/ddanzi/service/auth/AuthService.java index c9053ca..0d465f1 100644 --- a/src/main/java/co/orange/ddanzi/service/auth/AuthService.java +++ b/src/main/java/co/orange/ddanzi/service/auth/AuthService.java @@ -77,7 +77,7 @@ public ApiResponse verify(VerifyRequestDto requestDto){ Authentication authentication = user.getAuthentication(); if(authentication != null) { - verifyExistingAuthentication(user, requestDto); + return verifyExistingAuthentication(user, requestDto); } else{ String phone = formatPhone(requestDto.getPhone()); @@ -90,8 +90,8 @@ public ApiResponse verify(VerifyRequestDto requestDto){ log.info("회원 정보 변경 완료 user_authentication_id -> {}", user.getAuthentication().getId()); termService.createUserAgreements(user, requestDto.getIsAgreedMarketingTerm()); + return ApiResponse.onSuccess(Success.CREATE_AUTHENTICATION_SUCCESS, setVerifyResponse(user)); } - return ApiResponse.onSuccess(Success.CREATE_AUTHENTICATION_SUCCESS, setVerifyResponse(user)); } @Transactional