diff --git a/src/main/java/com/gamzabat/algohub/feature/group/studygroup/service/StudyGroupService.java b/src/main/java/com/gamzabat/algohub/feature/group/studygroup/service/StudyGroupService.java index 77731cde..f668bc2b 100644 --- a/src/main/java/com/gamzabat/algohub/feature/group/studygroup/service/StudyGroupService.java +++ b/src/main/java/com/gamzabat/algohub/feature/group/studygroup/service/StudyGroupService.java @@ -218,7 +218,7 @@ private GetStudyGroupResponse getStudyGroupResponseDTO(User user, StudyGroup gro GroupMember member = groupMemberRepository.findByUserAndStudyGroup(user, group) .orElseThrow(() -> new GroupMemberValidationException(HttpStatus.FORBIDDEN.value(), "참여하지 않은 스터디 그룹입니다.")); return GetStudyGroupResponse.toDTO(group, user, isBookmarked(user, group), getStudyGroupOwner(group), - member.isVisible()); + member.getIsVisible()); } private User getStudyGroupOwner(StudyGroup group) { diff --git a/src/test/java/com/gamzabat/algohub/service/StudyGroupServiceTest.java b/src/test/java/com/gamzabat/algohub/service/StudyGroupServiceTest.java index 3ccd0e35..7738e46a 100644 --- a/src/test/java/com/gamzabat/algohub/service/StudyGroupServiceTest.java +++ b/src/test/java/com/gamzabat/algohub/service/StudyGroupServiceTest.java @@ -679,7 +679,7 @@ void editGroupVisibility() { // when studyGroupService.editStudyGroupVisibility(user, request); // then - assertThat(groupMember1.isVisible()).isFalse(); + assertThat(groupMember1.getIsVisible()).isFalse(); } @Test