diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/service/AuthService.java b/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/service/AuthService.java index 6eae075..81e28cb 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/service/AuthService.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/service/AuthService.java @@ -112,6 +112,16 @@ public Optional signUp(OAuth2MemberDto memberDto) { log.info("member -> {}", member.getNickname()); memberRepository.save(member); + log.info("member id -> {}", member.getId()); + log.info("member nickname -> {}", member.getNickname()); + log.info("member snowflake -> {}", member.getSnowflake()); + log.info("member snowmanHeight-> {}", member.getSnowmanHeight()); + log.info("member attacking -> {}", member.getAttacking()); + log.info("member demage -> {}", member.getDamage()); + log.info("member role -> {}", member.getRole().getTitle()); + log.info("member new alarm -> {}", member.getNewAlarm()); + log.info("member univ -> {}", member.getUniv().getUnivName()); + log.info("member item -> {}", member.getItem().getId()); // 눈송이 수 업데이트 commitService.setSnowflake(memberDto); diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/service/MemberService.java b/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/service/MemberService.java index 2fe11d5..231d1cc 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/service/MemberService.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/service/MemberService.java @@ -116,7 +116,11 @@ public Long refreshSnowflake(Member member) { Long newHeight = member.getSnowmanHeight(); // 현재 Commit 객체에 저장되어 있는 커밋 수 조회 - Commit commit = commitRepository.findByMember(member).orElseThrow(() -> new CommitException(ErrorCode.COMMIT_NOT_FOUND)); + Commit commit = commitRepository.findByMember(member).get(); + if (commit == null) { + log.info("commit 객체가 null 입니다."); + return 100000L; + } Long preCommits = commit.getCount(); log.info("resetSnowflake에서 조회한 현재 커밋 수 -> {}", preCommits);