Skip to content

Commit

Permalink
fix : 정렬 속성 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
zini9188 committed Nov 23, 2023
1 parent 220aedb commit c968ded
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public void deleteSchedule(Long id) {

public Page<Schedule> getSchedules(String keyword, String sort, Pageable pageable) {
Page<Schedule> schedules = scheduleRepository
.findAllByTitleContainingAndViewYnNot(keyword, true, PageRequest.of(pageable.getPageNumber(), pageable.getPageSize(), Sort.by("created_at").descending()));
.findAllByTitleContainingAndViewYnNot(keyword, true, PageRequest.of(pageable.getPageNumber(),
pageable.getPageSize(), Sort.by("createdAt").descending()));
return schedules;
}

Expand Down

0 comments on commit c968ded

Please sign in to comment.