Skip to content

Commit

Permalink
refactor: 2차 정렬 기준 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimprodp committed Nov 18, 2024
1 parent 64cda94 commit cabfe78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface AnswerRepository extends JpaRepository<Answer, Long> {
SELECT a FROM Answer a
JOIN Review r ON a.reviewId = r.id
WHERE r.reviewGroupId = :reviewGroupId AND a.questionId IN :questionIds
ORDER BY r.createdAt DESC
ORDER BY r.createdAt DESC, r.id DESC
LIMIT :limit
""")
List<Answer> findReceivedAnswersByQuestionIds(long reviewGroupId, Collection<Long> questionIds, int limit);
Expand Down

0 comments on commit cabfe78

Please sign in to comment.