Skip to content

Commit

Permalink
Fix : 삭제된 모임 조회되지 않도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Astin01 committed Sep 22, 2024
1 parent 6d80eb6 commit 5958e52
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public Page<GatheringMypageResponse> retrieveGatheringHost(Pageable pageable, Lo
.on(gatheringApplicants.gathering.id.eq(gathering.id)
.and(gatheringApplicants.gatheringStatus.eq(GatheringStatus.CONSENT)))
.orderBy(gathering.createdAt.desc())
.where(gathering.user.id.eq(userId));
.where(gathering.user.id.eq(userId).and(gathering.isDeleted.eq(false)));

List<GatheringMypageResponse> list = query
.groupBy(gathering.id, zoneCategoryParent.id, zoneCategoryChild.id,
Expand Down Expand Up @@ -200,7 +200,7 @@ public Page<GatheringMypageResponse> retrieveGatheringBookmark(Pageable pageable
.leftJoin(bookMarkGathering)
.on(bookMarkGathering.gathering.id.eq(gathering.id))
.orderBy(gathering.createdAt.desc())
.where(bookMarkGathering.user.id.eq(userId));
.where(bookMarkGathering.user.id.eq(userId).and(gathering.isDeleted.eq(false)));

List<GatheringMypageResponse> list = query
.groupBy(gathering.id, zoneCategoryParent.id, zoneCategoryChild.id,
Expand Down Expand Up @@ -250,7 +250,7 @@ public Page<GatheringApplicantResponse> retrieveGatheringApplicant(Pageable page
.leftJoin(gatheringApplicants)
.on(gatheringApplicants.gathering.id.eq(gathering.id))
.orderBy(gathering.createdAt.desc())
.where(gatheringApplicants.user.id.eq(userId).and(gathering.user.id.eq(userId).not()));
.where(gatheringApplicants.user.id.eq(userId).and(gathering.user.id.eq(userId).not()).and(gathering.isDeleted.eq(false)));

List<GatheringApplicantResponse> list = query
.groupBy(gathering.id, zoneCategoryParent.id, zoneCategoryChild.id,
Expand Down

0 comments on commit 5958e52

Please sign in to comment.