Skip to content

Commit

Permalink
[Fix] isCoffeeChatActivate param 추가 (#543)
Browse files Browse the repository at this point in the history
* fix: 멤버 coffee chat 관련 필드 반영

* fix: isCoffeeChatActivate param 추가

* chore: method명 변경

* chore: method명 변경
  • Loading branch information
jun02160 authored Nov 9, 2024
1 parent 447b2ad commit 32bc560
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -114,7 +114,7 @@ public static MemberProfileSpecificResponse checkIsBlindPhone(MemberProfileSpeci
response.projects(),
response.careers(),
response.allowOfficial(),
response.isCoffeeChatActivate(),
isCoffeeChatActivate,
isMine
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ public ResponseEntity<MemberProfileSpecificResponse> 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);
}
Expand Down

0 comments on commit 32bc560

Please sign in to comment.