diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/auth/config/AuthenticationUtils.java b/src/main/java/com/committers/snowflowerthon/committersserver/auth/config/AuthenticationUtils.java index e1886fa..4e310af 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/auth/config/AuthenticationUtils.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/auth/config/AuthenticationUtils.java @@ -9,7 +9,7 @@ @Component public class AuthenticationUtils { - +/* public static String getNickname() { Authentication authentication = getAuthentication(); @@ -57,4 +57,6 @@ private static CustomAuthenticationToken getCustomAuthenticationToken(Authentica throw new IllegalStateException("Unexpected principal type: " + principal.getClass()); } } + + */ } \ No newline at end of file diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/domain/follow/service/FollowService.java b/src/main/java/com/committers/snowflowerthon/committersserver/domain/follow/service/FollowService.java index 7ca7c11..85c5ee7 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/domain/follow/service/FollowService.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/domain/follow/service/FollowService.java @@ -1,6 +1,5 @@ package com.committers.snowflowerthon.committersserver.domain.follow.service; -import com.committers.snowflowerthon.committersserver.auth.config.AuthenticationUtils; import com.committers.snowflowerthon.committersserver.common.validation.ValidationService; import com.committers.snowflowerthon.committersserver.domain.follow.dto.FollowPatchedDto; import com.committers.snowflowerthon.committersserver.domain.follow.entity.Follow; @@ -20,7 +19,7 @@ public class FollowService { // Follow 생성 public Follow createFollow(Member buddy){ - Long memberId = AuthenticationUtils.getMemberId(); + Long memberId = 1L; Member member = validationService.valMember(memberId); return Follow.builder() .buddyId(buddy.getId()) @@ -45,7 +44,7 @@ public FollowPatchedDto changeFollowStatus(String nickname, Boolean isFollowed) // 1:1 연결된 Follow 관계를 받아옴 public Follow getFollowRelation(Member buddy){ // 반환값이 NULL일 수 있음 - Long memberId = AuthenticationUtils.getMemberId(); + Long memberId = 1L; Member member = validationService.valMember(memberId); return followRepository.findByMemberAndBuddyId(member, buddy.getId()) .orElse(null); @@ -62,7 +61,7 @@ public Boolean followStatus(Member otherMember) { // 내가 Follow하고 있는 사용자들 불러옴 public List getBuddyList() { - Long memberId = AuthenticationUtils.getMemberId(); + Long memberId = 1L; Member member = validationService.valMember(memberId); List followList = followRepository.findAllByMember(member); if (followList == null || followList.isEmpty()) { // 팔로우 중인 사람이 없음