Skip to content

Commit

Permalink
♻️ :: 회원가입 api 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dkflfkd53 committed Jan 2, 2024
1 parent 225cf56 commit faae644
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.example.asterbackend.domain.user.user.entity.User;
import com.example.asterbackend.domain.user.user.entity.type.Role;
import com.example.asterbackend.domain.user.user.repository.UserRepository;
import com.example.asterbackend.global.exception.user.UserExistsException;
import com.example.asterbackend.global.security.jwt.JwtTokenProvider;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
Expand All @@ -26,7 +25,7 @@ public class SignupService {
@Transactional
public TokenResponse signup(SignupRequest request) {
if(userRepository.findByStudentId(request.getStudentId()).isPresent()) {
throw UserExistsException.EXCEPTION;
return jwtTokenProvider.receiveToken(request.getStudentId());
}

SchoolClass schoolClass = schoolClassFacade.currentSchoolClass(Long.parseLong(request.getStudentId())/1000, Long.parseLong(request.getStudentId())/100%10);
Expand Down

0 comments on commit faae644

Please sign in to comment.