Skip to content

Commit

Permalink
hotfix: memo 좋아요 SQL 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
goathoon committed Nov 21, 2023
1 parent 37096d2 commit 96fc7b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public List<Memo> findAllByUserIdOrderById(Long userId, Long pageNum, Long resul
@Override
public List<Memo> 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);
}
Expand Down

0 comments on commit 96fc7b2

Please sign in to comment.