From c968ded6b5d89694370541cb321f5ee213aa44c1 Mon Sep 17 00:00:00 2001 From: zini9188 Date: Fri, 24 Nov 2023 08:52:14 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EC=A0=95=EB=A0=AC=20=EC=86=8D?= =?UTF-8?q?=EC=84=B1=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/tgd/trip/schedule/service/ScheduleService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }