diff --git a/src/main/java/org/sopt/makers/internal/dto/member/MemberProfileSpecificResponse.java b/src/main/java/org/sopt/makers/internal/dto/member/MemberProfileSpecificResponse.java index a9c2c0b1..340811cb 100644 --- a/src/main/java/org/sopt/makers/internal/dto/member/MemberProfileSpecificResponse.java +++ b/src/main/java/org/sopt/makers/internal/dto/member/MemberProfileSpecificResponse.java @@ -88,7 +88,7 @@ public record MemberCareerResponse( Boolean isCurrent ){} - public static MemberProfileSpecificResponse checkIsBlindPhone(MemberProfileSpecificResponse response, Boolean isMine) { + public static MemberProfileSpecificResponse applyPhoneMasking(MemberProfileSpecificResponse response, Boolean isMine, Boolean isCoffeeChatActivate) { return new MemberProfileSpecificResponse( response.name(), response.profileImage(), @@ -114,7 +114,7 @@ public static MemberProfileSpecificResponse checkIsBlindPhone(MemberProfileSpeci response.projects(), response.careers(), response.allowOfficial(), - response.isCoffeeChatActivate(), + isCoffeeChatActivate, isMine ); } diff --git a/src/main/java/org/sopt/makers/internal/member/controller/MemberController.java b/src/main/java/org/sopt/makers/internal/member/controller/MemberController.java index 083fdb5b..8b88c12f 100644 --- a/src/main/java/org/sopt/makers/internal/member/controller/MemberController.java +++ b/src/main/java/org/sopt/makers/internal/member/controller/MemberController.java @@ -170,11 +170,11 @@ public ResponseEntity getUserProfile ( ).collect(Collectors.toList()); val isMine = Objects.equals(member.getId(), memberDetails.getId()); val isCoffeeChatActivate = coffeeChatService.getCoffeeChatActivate(member.getId()); - val response = MemberProfileSpecificResponse.checkIsBlindPhone( + val response = MemberProfileSpecificResponse.applyPhoneMasking( memberMapper.toProfileSpecificResponse( member, true, memberProfileProjects, activityResponses, soptActivityResponse, isCoffeeChatActivate ), - isMine); + isMine, isCoffeeChatActivate); sortProfileCareer(response); return ResponseEntity.status(HttpStatus.OK).body(response); }