From 2d3c55acc4b809a5a3ebed5e6364e0d0ab00b871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=82=98=EA=B2=BD=ED=98=B8?= Date: Wed, 3 Jul 2024 20:17:13 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=98=A4=ED=83=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maru_egg/chat/repository/ChatMessageRepositoryImpl.java | 2 +- src/main/resources/application-local.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/mju/iphak/maru_egg/chat/repository/ChatMessageRepositoryImpl.java b/src/main/java/mju/iphak/maru_egg/chat/repository/ChatMessageRepositoryImpl.java index 190ada6..4e6387f 100644 --- a/src/main/java/mju/iphak/maru_egg/chat/repository/ChatMessageRepositoryImpl.java +++ b/src/main/java/mju/iphak/maru_egg/chat/repository/ChatMessageRepositoryImpl.java @@ -30,7 +30,7 @@ public Slice findAllChatMessages(final Long chatId, final L chatMessage.id.eq(chatId), cursorId != null ? chatMessage.id.lt(cursorId) : null ) - .orderBy(chatMessage.createAt.desc()) + .orderBy(chatMessage.createdAt.desc()) .limit(pageable.getPageSize() + 1) .fetch(); diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index 5227378..6ed4301 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -13,7 +13,7 @@ spring: dialect: org.hibernate.dialect.MySQLDialect datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3316/maru-egg-local + url: jdbc:mysql://localhost:3316/maru-egg-db username: root password: maruegg!