getAudioContentRanking - sort-type 추가

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

View File

@ -154,8 +154,8 @@ class AudioContentController(private val service: AudioContentService) {
@GetMapping("/ranking")
fun getAudioContentRanking(
@RequestParam("sort-type", required = false) sortType: String = "매출",
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
@RequestParam("sortType", required = false) sortType: String = "매출",
pageable: Pageable
) = run {
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")