Skip to content

Commit

Permalink
fix: 아이템 낮은 가격순 정렬 안되는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Curry4182 committed Apr 12, 2024
1 parent a148c5d commit 2ea3913
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,17 @@ private BooleanExpression whereCursorIdCondition(

if (itemSortCondition == ItemSortCondition.NEWEST ||
itemSortCondition == ItemSortCondition.PRICE_HIGH_TO_LOW ||
itemSortCondition == ItemSortCondition.PRICE_LOW_TO_HIGH ||
itemSortCondition == null
) {
return generateCursorId(itemSortCondition)
.lt(cursorId);
}

if (itemSortCondition == ItemSortCondition.PRICE_LOW_TO_HIGH) {
return generateCursorId(itemSortCondition)
.gt(cursorId);
}

return null;
}

Expand Down

0 comments on commit 2ea3913

Please sign in to comment.