getAudioContentRanking - sort-type 추가
This commit is contained in:
parent
275f6049d1
commit
ed3e55514a
|
@ -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 ?: "매출"
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue