Skip to content

Commit 74c6e16

Browse files
committed
chore: enum 타입 사용하도록 변
1 parent 4810210 commit 74c6e16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/commerce-api/src/main/java/com/loopers/application/product/ProductFacade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public ProductDetailInfo getProductDetail(Long productId) {
2121
public ProductListInfo getProducts(ProductGetListCommand command) {
2222
String cacheKey = String.format("brand:%s:sort:%s:page:%d:size:%d",
2323
command.brandId() != null ? command.brandId() : "all",
24-
command.sort() != null ? command.sort() : "latest",
24+
command.getSortType().name().toLowerCase(),
2525
command.pageable().getPageNumber(),
2626
command.pageable().getPageSize()
2727
);

0 commit comments

Comments
 (0)