diff --git a/backend/core/src/main/java/site/timecapsulearchive/core/domain/auth/api/AuthApi.java b/backend/core/src/main/java/site/timecapsulearchive/core/domain/auth/api/AuthApi.java index 4cf3f8e41..ce89ea1c5 100644 --- a/backend/core/src/main/java/site/timecapsulearchive/core/domain/auth/api/AuthApi.java +++ b/backend/core/src/main/java/site/timecapsulearchive/core/domain/auth/api/AuthApi.java @@ -139,6 +139,7 @@ public interface AuthApi { 로그인된 사용자만 가능하다. """, + security = {@SecurityRequirement(name = "user_token")}, tags = {"auth"} ) @ApiResponses(value = { diff --git a/backend/core/src/main/java/site/timecapsulearchive/core/domain/capsule/group_capsule/service/GroupCapsuleService.java b/backend/core/src/main/java/site/timecapsulearchive/core/domain/capsule/group_capsule/service/GroupCapsuleService.java index 7476b98d6..6b6e88594 100644 --- a/backend/core/src/main/java/site/timecapsulearchive/core/domain/capsule/group_capsule/service/GroupCapsuleService.java +++ b/backend/core/src/main/java/site/timecapsulearchive/core/domain/capsule/group_capsule/service/GroupCapsuleService.java @@ -2,10 +2,13 @@ import java.time.ZoneOffset; import java.time.ZonedDateTime; +import java.util.Collections; import java.util.List; import lombok.RequiredArgsConstructor; import org.locationtech.jts.geom.Point; import org.springframework.data.domain.Slice; +import org.springframework.data.domain.SliceImpl; +import org.springframework.security.core.parameters.P; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import site.timecapsulearchive.core.domain.capsule.data.dto.CapsuleBasicInfoDto; @@ -199,6 +202,10 @@ public Slice findGroupCapsuleSlice( ) { final List groupIds = memberGroupRepository.findGroupIdsByMemberId(memberId); + if (groupIds.isEmpty()) { + return new SliceImpl<>(Collections.emptyList()); + } + return groupCapsuleQueryRepository.findGroupCapsuleSlice(size, lastCapsuleId, groupIds); } diff --git a/backend/core/src/main/java/site/timecapsulearchive/core/domain/member/api/MemberApi.java b/backend/core/src/main/java/site/timecapsulearchive/core/domain/member/api/MemberApi.java index b09afd7bd..a3958f230 100644 --- a/backend/core/src/main/java/site/timecapsulearchive/core/domain/member/api/MemberApi.java +++ b/backend/core/src/main/java/site/timecapsulearchive/core/domain/member/api/MemberApi.java @@ -232,6 +232,7 @@ ResponseEntity> updateMemberPhoneSearchAvailable( description = """ 가입한 사용자가 회원을 탈퇴한다. """, + security = {@SecurityRequirement(name = "user_token")}, tags = {"member"} ) @ApiResponses(value = { diff --git a/backend/core/src/main/resources/config b/backend/core/src/main/resources/config index 7a309094b..10bd3becb 160000 --- a/backend/core/src/main/resources/config +++ b/backend/core/src/main/resources/config @@ -1 +1 @@ -Subproject commit 7a309094bc5b65cea41c043991fc32b8f00b9778 +Subproject commit 10bd3becb428fd412e8cec1bcb108b98444a8e3a