Skip to content

Commit

Permalink
[fix] add order query in meetings
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdwns414 committed Jan 14, 2024
1 parent def6461 commit 9ca0f44
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public interface MeetingRepository extends JpaRepository<Meeting, Long> {
@Query("SELECT COUNT(m) FROM Meeting m WHERE m.pin.id = :pinId AND m.startAt > CURRENT_TIMESTAMP AND m.category = :category")
int countMeetingsForPin(Long pinId, MCategory category);

List<Meeting> findByPinIdAndCategoryAndStartAtAfter(Long pinId, MCategory category, LocalDateTime currentTime);
List<Meeting> findByPinIdAndCategoryAndStartAtAfterOrderByStartAt(Long pinId, MCategory category, LocalDateTime currentTime);

List<Meeting> findByPinIdAndStartAtAfter(Long pinId, LocalDateTime currentTime);
List<Meeting> findByPinIdAndStartAtAfterOrderByStartAt(Long pinId, LocalDateTime currentTime);
}

0 comments on commit 9ca0f44

Please sign in to comment.