Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
mertycom committed Feb 3, 2023
1 parent 9bed069 commit d78c775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public interface IAuthMapper {

LoginResponseDto fromAuthToLoginResponseDto(final Auth auth);

RegisterResponseDto fromAuthToLoginResponse(final Auth auth);
RegisterResponseDto fromAuthToRegisterResponse(final Auth auth);


@Mappings({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
import com.bilgeadam.mapper.IAuthMapper;
import com.bilgeadam.repository.AuthRepository;
import com.bilgeadam.repository.entity.Auth;
import com.bilgeadam.repository.entity.Roles;
import com.bilgeadam.utility.CodeGenerator;
import com.bilgeadam.utility.JwtTokenManager;
import com.bilgeadam.utility.ServiceManager;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.Optional;

@Service
Expand Down Expand Up @@ -61,6 +59,6 @@ public RegisterResponseDto register(RegisterRequestDto dto) {
save(auth);
userProfileManager.createProfile(IAuthMapper.INSTANCE.fromAuth(auth));

return IAuthMapper.INSTANCE.fromAuthToLoginResponse(auth);
return IAuthMapper.INSTANCE.fromAuthToRegisterResponse(auth);
}
}

0 comments on commit d78c775

Please sign in to comment.