parent
e1ea1f14a5
commit
720ee63505
|
@ -105,7 +105,7 @@ class AudioContentController(private val service: AudioContentService) {
|
|||
fun getAudioContentList(
|
||||
@RequestParam("creator-id") creatorId: Long,
|
||||
@RequestParam("sort-type", required = false) sortType: SortType = SortType.NEWEST,
|
||||
@RequestParam("category-id", required = false) categoryId: Long = 0,
|
||||
@RequestParam("category-id", required = false) categoryId: Long? = 0,
|
||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
|
||||
pageable: Pageable
|
||||
) = run {
|
||||
|
@ -115,7 +115,7 @@ class AudioContentController(private val service: AudioContentService) {
|
|||
service.getAudioContentList(
|
||||
creatorId = creatorId,
|
||||
sortType = sortType,
|
||||
categoryId = categoryId,
|
||||
categoryId = categoryId ?: 0,
|
||||
member = member,
|
||||
offset = pageable.offset,
|
||||
limit = pageable.pageSize.toLong()
|
||||
|
|
Loading…
Reference in New Issue