Skip to content

Commit

Permalink
Merge pull request #95 from Hooking-CEOS/feature/brand
Browse files Browse the repository at this point in the history
[feat] 최신순
  • Loading branch information
CYJhub authored Jul 29, 2023
2 parents cbb0b62 + 181ac93 commit 002b74d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public ResponseEntity<HttpRes<List<CopyRes>>> copyScrapList(HttpServletRequest h
List<CopyRes> copyRes = copyService.getCopyScrapList(user);
int startIndex = index * 30;
List<CopyRes> resultCopyRes = copyService.getLimitedCopyResByIndex(copyRes, startIndex);
resultCopyRes.sort((copy1, copy2) -> copy2.getCreatedAt().compareTo(copy1.getCreatedAt()));

return ResponseEntity.ok(new HttpRes<>(resultCopyRes));
}

Expand Down

0 comments on commit 002b74d

Please sign in to comment.