From 1da3bcf74d42814926ab714d40abb2a765246701 Mon Sep 17 00:00:00 2001 From: Vladik-gif Date: Sat, 16 Nov 2024 17:59:24 +0200 Subject: [PATCH] refactor method AuthenticationService.register --- .../java/com/chat/yourway/service/AuthenticationService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/chat/yourway/service/AuthenticationService.java b/src/main/java/com/chat/yourway/service/AuthenticationService.java index a339f89..0ed8520 100644 --- a/src/main/java/com/chat/yourway/service/AuthenticationService.java +++ b/src/main/java/com/chat/yourway/service/AuthenticationService.java @@ -38,7 +38,6 @@ public class AuthenticationService { @Transactional public RegistrationResponseDto register(ContactRequestDto contactRequestDto, String clientHost) { - final var status = RegistrationResponseDto.builder().registerStatus("success full").build(); log.trace("Started registration contact email: {}", contactRequestDto.getEmail()); var contact = contactService.create(contactRequestDto); @@ -46,7 +45,7 @@ public RegistrationResponseDto register(ContactRequestDto contactRequestDto, Str log.info("Saved registered contact {} to repository", contact.getEmail()); activateAccountService.sendVerifyEmail(contact, clientHost); - return status; + return RegistrationResponseDto.builder().registerStatus("success full").build(); } @Transactional