오디션 메인
- 로그인 없이 조회 가능하도록 수정
This commit is contained in:
@@ -18,13 +18,11 @@ class AuditionController(private val service: AuditionService) {
|
||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
|
||||
pageable: Pageable
|
||||
) = run {
|
||||
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
|
||||
|
||||
ApiResponse.ok(
|
||||
service.getAuditionList(
|
||||
offset = pageable.offset,
|
||||
limit = pageable.pageSize.toLong(),
|
||||
isAdult = member.auth != null
|
||||
isAdult = member?.auth != null
|
||||
)
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user