Skip to content

Commit

Permalink
Bug/210 (#214)
Browse files Browse the repository at this point in the history
* 🐛 Fix : 레시피 목록조회 버그 수정

* 📈 Refactor : 소셜로그인 로깅 추가
  • Loading branch information
CYY1007 authored Oct 18, 2023
1 parent c29b0f2 commit 0a59719
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public void init(){
@Transactional
public OAuthResult.OAuthResultDto SocialLogin(MemberRequestDto.OAuthRequestDto request,String type) {
Member member = memberRepository.findByEmail(request.getEmail()).orElse(null);

request.toString();
if(member != null) {
String accessToken = null;
Optional<FcmToken> fcmToken = fcmTokenRepository.findByTokenAndSerialNumber(request.getFcmToken(), request.getSerialNumber());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ public String toString() {
@Getter
@Setter
public static class OAuthRequestDto {
@Override
public String toString() {
return "OAuthRequestDto{" +
"email='" + email + '\'' +
", fcmToken='" + fcmToken + '\'' +
", serialNumber='" + serialNumber + '\'' +
'}';
}
private String email;
private String fcmToken;
private String serialNumber;
Expand Down

0 comments on commit 0a59719

Please sign in to comment.