Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
wellbeing-dough committed Oct 19, 2023
2 parents d24aed9 + e7598d1 commit df5f220
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,13 @@ public List<VoteCommonData> findVoteCommonDataByTimeAndUserId(Long userId, Strin
.where(keywordExpression)
.groupBy(vote.id)
.orderBy(
new CaseBuilder()
.when(voteResult.votedUserId.eq(userId)).then(1)
.otherwise(0).asc(),
voteOrder.asc(),
vote.createdDate.desc()
)
.offset(pageNo * pageSize)
.limit(pageSize + 1)
.fetch();


return result;
}

Expand Down

0 comments on commit df5f220

Please sign in to comment.