시리즈 콘텐츠 정렬
- defaultValue 대신 required = false로 수정
This commit is contained in:
@@ -50,7 +50,7 @@ class ContentSeriesController(private val service: ContentSeriesService) {
|
||||
@GetMapping("/{id}/content")
|
||||
fun getSeriesContentList(
|
||||
@PathVariable id: Long,
|
||||
@RequestParam("sortType", defaultValue = "NEWEST") sortType: SeriesSortType,
|
||||
@RequestParam("sortType", required = false) sortType: SeriesSortType? = SeriesSortType.NEWEST,
|
||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
|
||||
pageable: Pageable
|
||||
) = run {
|
||||
@@ -60,7 +60,7 @@ class ContentSeriesController(private val service: ContentSeriesService) {
|
||||
service.getSeriesContentList(
|
||||
seriesId = id,
|
||||
member = member,
|
||||
sortType = sortType,
|
||||
sortType = sortType ?: SeriesSortType.NEWEST,
|
||||
offset = pageable.offset,
|
||||
limit = pageable.pageSize.toLong()
|
||||
)
|
||||
|
Reference in New Issue
Block a user