Skip to content

Commit

Permalink
fix: 정렬 방법 DESC에서 ASC로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
YongGoose committed Nov 1, 2023
1 parent 5b5de42 commit acf5392
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public ResponseEntity<?> askQuestionToChatGpt(

@GetMapping("question/list")
public ResponseEntity<?> findQuestionList(
@PageableDefault(size = 100, direction = Direction.DESC, sort = "id") Pageable pageable,
@PageableDefault(size = 100, direction = Direction.ASC, sort = "id") Pageable pageable,
@AuthenticationPrincipal MemberPrincipal memberPrincipal) {
Page<AiSummaryContent> aiSummaryContents = aiService.findAiSummaryContentList(pageable,
memberPrincipal.getMember());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public ResponseEntity<?> scrapHistory(@AuthenticationPrincipal MemberPrincipal m

@GetMapping("/scrap/list")
public ResponseEntity<?> getScrapList(@AuthenticationPrincipal MemberPrincipal memberPrincipal,
@PageableDefault(size = 100, direction = Direction.DESC, sort = "lastModifiedDate")
@PageableDefault(size = 100, direction = Direction.ASC, sort = "lastModifiedDate")
Pageable pageable) {
Page<AiSummaryContent> aiSummaryContents = scrapService.findScrapContentList(pageable,
memberPrincipal.getMember());
Expand Down

0 comments on commit acf5392

Please sign in to comment.