test #294

Merged
klaus merged 10 commits from test into main 2025-03-24 09:09:17 +00:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit dc74d203bd - Show all commits

View File

@ -76,6 +76,7 @@ class SecurityConfig(
.antMatchers("/charge/ads").permitAll()
.antMatchers("/v2/audio-content/main/home").permitAll()
.antMatchers("/v2/audio-content/main/home/popular-content-by-creator").permitAll()
.antMatchers("/audio-content/ranking").permitAll()
.anyRequest().authenticated()
.and()
.build()

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,