콘텐츠 메인 홈

- 로그인 없이 인기 단편 조회가 가능하도록 수정
This commit is contained in:
2025-03-22 02:42:44 +09:00
parent 387d364861
commit dc74d203bd
2 changed files with 2 additions and 3 deletions

View File

@@ -184,8 +184,6 @@ class AudioContentController(private val service: AudioContentService) {
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
pageable: Pageable
) = run {
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
val currentDateTime = LocalDateTime.now()
val startDate = currentDateTime
.withHour(15)
@@ -198,7 +196,7 @@ class AudioContentController(private val service: AudioContentService) {
ApiResponse.ok(
service.getAudioContentRanking(
isAdult = member.auth != null && (isAdultContentVisible ?: true),
isAdult = member?.auth != null && (isAdultContentVisible ?: true),
contentType = contentType ?: ContentType.ALL,
startDate = startDate,
endDate = endDate,