Skip to content

Commit 03ab0f9

Browse files
fix: 스페이스 목록 조회 커서 기준 변경
1 parent ae6ee00 commit 03ab0f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layer-domain/src/main/java/org/layer/domain/space/repository/SpaceRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public SpaceRepositoryImpl(EntityManager em) {
3636
@Override
3737
public List<SpaceWithMemberCount> findAllSpacesByMemberIdAndCategoryAndCursor(Long memberId, Long cursorId, Optional<SpaceCategory> category, int pageSize) {
3838
BooleanExpression predicate = memberSpaceRelation.memberId.eq(memberId)
39-
.and(cursorId == null ? null : space.id.lt(cursorId))
39+
.and(cursorId == 0 ? null : space.id.lt(cursorId))
4040
.and(hasCategory(category));
4141

4242
return getSpaceWithMemberCountQuery()

0 commit comments

Comments
 (0)