Skip to content

Commit

Permalink
[hotfix] fix: 곡 정렬 쿼리에 정렬 기준 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
elive7 committed Nov 28, 2024
1 parent 277c68c commit 116b307
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public Slice<Song> findAllByQueryOrderByNoteCountDesc(String query, Pageable pag
.orderBy(
Expressions.numberTemplate(Long.class,
"(select count(n) from Note n where n.song.id = song.id and n.deletedAt is null)")
.desc()
.desc(),
song.id.asc()
)
.offset(pageable.getOffset())
.limit(pageable.getPageSize() + 1)
Expand Down

0 comments on commit 116b307

Please sign in to comment.