Skip to content

Commit

Permalink
πŸ› CORS 였λ₯˜ μˆ˜μ •
Browse files Browse the repository at this point in the history
- μ„œλΉ„μŠ€ μ½”λ“œλ₯Ό μˆ˜μ •ν•˜μ˜€μŠ΅λ‹ˆλ‹€.
  • Loading branch information
Ganghee-Lee-0522 committed Jan 12, 2024
1 parent 233653a commit e811e55
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ public Optional<Member> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e811e55

Please sign in to comment.