Skip to content

Commit

Permalink
Merge pull request #684 from woowacourse-teams/BE/dev
Browse files Browse the repository at this point in the history
[BE] 테스트 서버 배포
  • Loading branch information
reddevilmidzy authored Oct 4, 2024
2 parents bb8586e + 7910af3 commit 810ee24
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public ResponseEntity<SignInWebResponse> signInCallback(

@GetMapping("/sign-in/check")
public ResponseEntity<SignInCheckResponse> signInCheck(
@CookieValue(name = SIGN_IN_COOKIE_NAME) final String signInToken
@CookieValue(name = SIGN_IN_COOKIE_NAME, required = false) final String signInToken
) {
final boolean signedIn = authService.isSignedIn(signInToken);
final SignInCheckResponse response = new SignInCheckResponse(signedIn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public SignInServiceResponse createSignInToken(final String accessToken) {
}

public boolean isSignedIn(final String signInToken) {
if (signInToken == null) {
return false;
}
return jwtProvider.isValid(signInToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ public ResponseEntity<ReferenceLinkResponse> createReferenceLink(
public ResponseEntity<List<ReferenceLinkResponse>> getReferenceLinks(
@PathVariable("accessCode") final String accessCodeText
) {
log.info("[Reference Link] 1. 링크 조회 API 호출 시작!");
final List<ReferenceLinkResponse> responses = referenceLinkService.readAllReferenceLink(accessCodeText);

log.info("[Reference Link] 5. 끝!! 응답!");
return ResponseEntity.ok(responses);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ private ReferenceLinkEntity saveReferenceLink(final ReferenceLinkCreateRequest r

@Transactional(readOnly = true)
public List<ReferenceLinkResponse> readAllReferenceLink(final String accessCodeText) {
log.info("[Reference Link] 2. readAllReferenceLink 메서드 호출 시작!");
log.info("[Reference Link] 3. referenceLinkRepository.findAll() 호출 시작!");
final PairRoomEntity pairRoom = pairRoomRepository.fetchByAccessCode(accessCodeText);

final List<ReferenceLinkEntity> referenceLinkEntities = referenceLinkRepository.findByPairRoomEntity(pairRoom);
Expand Down

0 comments on commit 810ee24

Please sign in to comment.