Skip to content

Commit

Permalink
🐛 [Fix] 토너먼트 오름차순으로 수정 (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimhan-nah authored Jan 11, 2024
2 parents e2cdc01 + 3193717 commit be93b92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class TournamentController {
*/
@GetMapping
public ResponseEntity<TournamentListResponseDto> getAllTournamentList(@ModelAttribute @Valid TournamentFilterRequestDto tournamentFilterRequestDto){
Pageable pageRequest = PageRequest.of(tournamentFilterRequestDto.getPage() - 1, tournamentFilterRequestDto.getSize(), Sort.by("startTime").descending());
Pageable pageRequest = PageRequest.of(tournamentFilterRequestDto.getPage() - 1, tournamentFilterRequestDto.getSize(), Sort.by("startTime").ascending());
return ResponseEntity.status(HttpStatus.OK).
body(tournamentService.getAllTournamentList(pageRequest, tournamentFilterRequestDto.getType(), tournamentFilterRequestDto.getStatus()));
}
Expand Down

0 comments on commit be93b92

Please sign in to comment.