Skip to content

Commit

Permalink
fix: 스페이스 목록 조회 커서 기준 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Aug 19, 2024
1 parent ae6ee00 commit 03ab0f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public SpaceRepositoryImpl(EntityManager em) {
@Override
public List<SpaceWithMemberCount> findAllSpacesByMemberIdAndCategoryAndCursor(Long memberId, Long cursorId, Optional<SpaceCategory> category, int pageSize) {
BooleanExpression predicate = memberSpaceRelation.memberId.eq(memberId)
.and(cursorId == null ? null : space.id.lt(cursorId))
.and(cursorId == 0 ? null : space.id.lt(cursorId))
.and(hasCategory(category));

return getSpaceWithMemberCountQuery()
Expand Down

0 comments on commit 03ab0f9

Please sign in to comment.