diff --git a/src/main/java/Funssion/Inforum/domain/post/memo/repository/MemoRepositoryJdbc.java b/src/main/java/Funssion/Inforum/domain/post/memo/repository/MemoRepositoryJdbc.java index 615c7336..0fcbce36 100644 --- a/src/main/java/Funssion/Inforum/domain/post/memo/repository/MemoRepositoryJdbc.java +++ b/src/main/java/Funssion/Inforum/domain/post/memo/repository/MemoRepositoryJdbc.java @@ -90,7 +90,7 @@ public List findAllByUserIdOrderById(Long userId, Long pageNum, Long resul @Override public List findAllLikedMemosByUserId(Long userId, Long pageNum, Long resultCntPerPage) { String sql = "select * from post.memo i join member.like l on i.id = l.post_id and l.post_type = 'MEMO' " + - "where l.user_id = ? and is_temporary = false order by i.created_date desc, id desc " + + "where l.user_id = ? and is_temporary = false order by i.created_date desc, i.id desc " + "limit ? offset ?"; return template.query(sql, memoRowMapper(), userId, resultCntPerPage, resultCntPerPage*pageNum); }