Skip to content

Commit

Permalink
Merge branch 'develop_back_core' into fix/docs-B-core-#621
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-1116 authored Aug 8, 2024
2 parents 524f567 + c2fa16e commit 0dd69fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -199,6 +202,10 @@ public Slice<GroupCapsuleDto> findGroupCapsuleSlice(
) {
final List<Long> groupIds = memberGroupRepository.findGroupIdsByMemberId(memberId);

if (groupIds.isEmpty()) {
return new SliceImpl<>(Collections.emptyList());
}

return groupCapsuleQueryRepository.findGroupCapsuleSlice(size, lastCapsuleId,
groupIds);
}
Expand Down
2 changes: 1 addition & 1 deletion backend/core/src/main/resources/config

0 comments on commit 0dd69fa

Please sign in to comment.