Skip to content

Commit 836a4ad

Browse files
committed
fix: 최근 생성된, 모집 중인 클럽 보기 API에서 사용하는 필드를 엔티티 생성시간으로 변경
1 parent 6dbcf76 commit 836a4ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bookduck/src/main/java/com/mmc/bookduck/domain/club/repository/ClubRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ Page<Club> searchClubs(@Param("keyword") String keyword,
3838
List<Club> findByClubStatusAndActiveEndAtBefore(@Param("status") ClubStatus status,
3939
@Param("now") LocalDateTime now);
4040

41-
Page<Club> findByClubStatusOrderByActiveStartAtDesc(ClubStatus status, Pageable pageable);
41+
Page<Club> findByClubStatusOrderByCreatedTimeDesc(ClubStatus status, Pageable pageable);
4242
}

bookduck/src/main/java/com/mmc/bookduck/domain/club/service/ClubService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public LocalDateTime getLastReadAt(ClubMember clubMember) {
357357

358358
@Transactional(readOnly = true)
359359
public ClubSearchListResponseDto findRecentActiveClubs(Pageable pageable) {
360-
Page<Club> clubPage = clubRepository.findByClubStatusOrderByActiveStartAtDesc(ClubStatus.ACTIVE, pageable);
360+
Page<Club> clubPage = clubRepository.findByClubStatusOrderByCreatedTimeDesc(ClubStatus.ACTIVE, pageable);
361361

362362
Page<ClubSearchResponseDto> dtoPage = clubPage.map(club -> {
363363
BookInfo bookInfo = club.getBookInfo();

0 commit comments

Comments
 (0)