전체 콘텐츠 리스트

- 카테고리를 지정하지 않을 때 조회되지 않는 버그 수정
This commit is contained in:
Klaus 2024-02-02 21:52:10 +09:00
parent e1ea1f14a5
commit 720ee63505
1 changed files with 2 additions and 2 deletions

View File

@ -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()