Skip to content

Commit 32bc560

Browse files
authored
[Fix] isCoffeeChatActivate param 추가 (#543)
* fix: 멤버 coffee chat 관련 필드 반영 * fix: isCoffeeChatActivate param 추가 * chore: method명 변경 * chore: method명 변경
1 parent 447b2ad commit 32bc560

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/org/sopt/makers/internal/dto/member/MemberProfileSpecificResponse.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public record MemberCareerResponse(
8888
Boolean isCurrent
8989
){}
9090

91-
public static MemberProfileSpecificResponse checkIsBlindPhone(MemberProfileSpecificResponse response, Boolean isMine) {
91+
public static MemberProfileSpecificResponse applyPhoneMasking(MemberProfileSpecificResponse response, Boolean isMine, Boolean isCoffeeChatActivate) {
9292
return new MemberProfileSpecificResponse(
9393
response.name(),
9494
response.profileImage(),
@@ -114,7 +114,7 @@ public static MemberProfileSpecificResponse checkIsBlindPhone(MemberProfileSpeci
114114
response.projects(),
115115
response.careers(),
116116
response.allowOfficial(),
117-
response.isCoffeeChatActivate(),
117+
isCoffeeChatActivate,
118118
isMine
119119
);
120120
}

src/main/java/org/sopt/makers/internal/member/controller/MemberController.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ public ResponseEntity<MemberProfileSpecificResponse> getUserProfile (
170170
).collect(Collectors.toList());
171171
val isMine = Objects.equals(member.getId(), memberDetails.getId());
172172
val isCoffeeChatActivate = coffeeChatService.getCoffeeChatActivate(member.getId());
173-
val response = MemberProfileSpecificResponse.checkIsBlindPhone(
173+
val response = MemberProfileSpecificResponse.applyPhoneMasking(
174174
memberMapper.toProfileSpecificResponse(
175175
member, true, memberProfileProjects, activityResponses, soptActivityResponse, isCoffeeChatActivate
176176
),
177-
isMine);
177+
isMine, isCoffeeChatActivate);
178178
sortProfileCareer(response);
179179
return ResponseEntity.status(HttpStatus.OK).body(response);
180180
}

0 commit comments

Comments
 (0)