test #123

Merged
klaus merged 9 commits from test into main 2024-02-05 02:12:10 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 720ee63505 - Show all commits

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