diff --git a/src/main/java/com/tgd/trip/schedule/service/ScheduleService.java b/src/main/java/com/tgd/trip/schedule/service/ScheduleService.java index fa2e835..44e789f 100644 --- a/src/main/java/com/tgd/trip/schedule/service/ScheduleService.java +++ b/src/main/java/com/tgd/trip/schedule/service/ScheduleService.java @@ -129,7 +129,8 @@ public void deleteSchedule(Long id) { public Page getSchedules(String keyword, String sort, Pageable pageable) { Page 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; }