mirror of
https://github.com/gotson/komga.git
synced 2025-12-21 16:03:03 +01:00
parent
0d2713a090
commit
fc5c50240e
1 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import mu.KotlinLogging
|
|||
import org.gotson.komga.application.tasks.TaskReceiver
|
||||
import org.gotson.komga.domain.model.BookSearchWithReadProgress
|
||||
import org.gotson.komga.domain.model.Media
|
||||
import org.gotson.komga.domain.model.ReadStatus
|
||||
import org.gotson.komga.domain.model.SeriesMetadata
|
||||
import org.gotson.komga.domain.model.SeriesSearch
|
||||
import org.gotson.komga.domain.persistence.BookRepository
|
||||
|
|
@ -184,6 +185,7 @@ class SeriesController(
|
|||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
@PathVariable(name = "seriesId") seriesId: Long,
|
||||
@RequestParam(name = "media_status", required = false) mediaStatus: List<Media.Status>?,
|
||||
@RequestParam(name = "read_status", required = false) readStatus: List<ReadStatus>?,
|
||||
@Parameter(hidden = true) page: Pageable
|
||||
): Page<BookDto> {
|
||||
seriesRepository.getLibraryId(seriesId)?.let {
|
||||
|
|
@ -200,7 +202,8 @@ class SeriesController(
|
|||
return bookDtoRepository.findAll(
|
||||
BookSearchWithReadProgress(
|
||||
seriesIds = listOf(seriesId),
|
||||
mediaStatus = mediaStatus ?: emptyList()
|
||||
mediaStatus = mediaStatus ?: emptyList(),
|
||||
readStatus = readStatus ?: emptyList()
|
||||
),
|
||||
principal.user.id,
|
||||
pageRequest
|
||||
|
|
|
|||
Loading…
Reference in a new issue