Skip to content

Commit dbed7ea

Browse files
Merge pull request #438 from Podo-Store/develop
[FIX] 작품 둘러보기 정렬
2 parents 817384d + 8a8b521 commit dbed7ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/PodoeMarket/podoemarket/product/controller/ProductController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public class ProductController {
3737
public ResponseEntity<?> allProducts(@AuthenticationPrincipal UserEntity userInfo, @RequestParam(defaultValue = "POPULAR") ProductSortType sortType) {
3838
try{
3939
final ScriptListResponseDTO lists = new ScriptListResponseDTO(
40-
productService.getPlayList(0, userInfo, PlayType.LONG, 10, sortType),
41-
productService.getPlayList(0, userInfo, PlayType.SHORT, 10, sortType)
40+
productService.getPlayList(0, userInfo, PlayType.LONG, 20, sortType).stream().limit(10).toList(),
41+
productService.getPlayList(0, userInfo, PlayType.SHORT, 20, sortType).stream().limit(10).toList()
4242
);
4343

4444
return ResponseEntity.ok().body(lists);

0 commit comments

Comments
 (0)