Skip to content

Commit

Permalink
fix: 관리자 상품 조회 정렬 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nowgnas committed Jan 20, 2024
1 parent 80bf256 commit 963c672
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public Page<Product> findProductsForAdmin(
ProductCommand.AdminSelectOption adminSelectOption, Pageable pageable) {
Query query = new Query();
query.addCriteria(Criteria.where("is_subscription").is(false));
if (adminSelectOption.getSalesAmount().equals(SortOption.HIGH))
if (adminSelectOption.getSalesAmount().equals(SortOption.TOP_SALE))
query.with(Sort.by(Order.desc(adminSelectOption.getSalesAmount().getSortOption())));
else query.with(Sort.by(Order.asc(adminSelectOption.getSalesAmount().getSortOption())));

Expand Down

0 comments on commit 963c672

Please sign in to comment.