Skip to content

Commit

Permalink
refactor : 이달의 생일자 조회 시 관리자와 게스트 정보 제외 완료 (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingmingmon authored Feb 2, 2025
1 parent 0993038 commit abf4910
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ public Page<MemberJpaEntity> findBirthdaysThisMonth(int month, Pageable pageable

List<MemberJpaEntity> members = queryFactory
.selectFrom(qMember)
.where(birthdayInMonth(month))
.where(
birthdayInMonth(month)
.and(qMember.role.ne(Role.GUEST))
)
.orderBy(orderSpecifiers.toArray(new OrderSpecifier[0]))
.offset(pageable.getOffset())
.limit(pageable.getPageSize())
Expand Down

0 comments on commit abf4910

Please sign in to comment.