Skip to content

Commit

Permalink
fix: 존재하지 않는 멤버 제외 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Aug 30, 2024
1 parent ea9d31a commit ca57cd7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public List<SpaceMember> findAllSpaceMemberBySpaceIdWithIsLeader(Long spaceId) {
.on(memberSpaceRelation.memberId.eq(member.id))
.leftJoin(space)
.on(memberSpaceRelation.space.id.eq(space.id))
.where(memberSpaceRelation.space.id.eq(spaceId))
.where(memberSpaceRelation.space.id.eq(spaceId).and(member.id.isNotNull()))
.orderBy(memberSpaceRelation.createdAt.asc())
.fetch();
}
Expand Down Expand Up @@ -135,7 +135,6 @@ private JPAQuery<SpaceWithMemberCount> getSpaceWithMemberCountQuery() {
}

private JPAQuery<SpaceWithMemberCount> getSpaceWithMemberCountQuery(Long memberId) {
log.info("CALL");
QMemberSpaceRelation memberCountRelationTable = new QMemberSpaceRelation("msr");
return queryFactory.select(
new QSpaceWithMemberCount(
Expand Down

0 comments on commit ca57cd7

Please sign in to comment.