We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4810210 commit 74c6e16Copy full SHA for 74c6e16
1 file changed
apps/commerce-api/src/main/java/com/loopers/application/product/ProductFacade.java
@@ -21,7 +21,7 @@ public ProductDetailInfo getProductDetail(Long productId) {
21
public ProductListInfo getProducts(ProductGetListCommand command) {
22
String cacheKey = String.format("brand:%s:sort:%s:page:%d:size:%d",
23
command.brandId() != null ? command.brandId() : "all",
24
- command.sort() != null ? command.sort() : "latest",
+ command.getSortType().name().toLowerCase(),
25
command.pageable().getPageNumber(),
26
command.pageable().getPageSize()
27
);
0 commit comments