test #359

Merged
klaus merged 15 commits from test into main 2025-11-13 19:45:53 +00:00
Showing only changes of commit 3ed306ae8c - Show all commits

View File

@@ -246,6 +246,8 @@ class AudioContentController(private val service: AudioContentService) {
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
pageable: Pageable
) = run {
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
ApiResponse.ok(
service.getLatestContentByTheme(
theme = emptyList(),
@@ -253,11 +255,7 @@ class AudioContentController(private val service: AudioContentService) {
offset = pageable.offset,
limit = pageable.pageSize.toLong(),
isFree = isFree ?: false,
isAdult = if (member != null) {
(isAdultContentVisible ?: true) && member.auth != null
} else {
false
},
isAdult = (isAdultContentVisible ?: true) && member.auth != null,
isPointAvailableOnly = isPointAvailableOnly ?: false
)
)