getAudioContentRanking - sort-type 추가

This commit is contained in:
Klaus 2023-11-02 03:41:54 +09:00
parent 275f6049d1
commit ed3e55514a
1 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class AudioContentController(private val service: AudioContentService) {
@GetMapping("/ranking")
fun getAudioContentRanking(
@RequestParam("sort-type", required = false) sortType: String = "매출",
@RequestParam("sort-type", required = false) sortType: String? = "매출",
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
pageable: Pageable
) = run {
@ -177,7 +177,7 @@ class AudioContentController(private val service: AudioContentService) {
endDate = endDate,
offset = pageable.offset,
limit = pageable.pageSize.toLong(),
sortType = sortType
sortType = sortType ?: "매출"
)
)
}