mirror of
https://github.com/gotson/komga.git
synced 2025-12-21 07:56:57 +01:00
fix(api): updating read progress from tachiyomi would mess up On Deck
This commit is contained in:
parent
8da5de663e
commit
480871c966
1 changed files with 4 additions and 1 deletions
|
|
@ -405,7 +405,10 @@ class SeriesController(
|
|||
principal.user.id,
|
||||
UnpagedSorted(Sort.by(Sort.Order.asc("metadata.numberSort"))),
|
||||
).filterIndexed { index, _ -> index < readProgress.lastBookRead }
|
||||
.forEach { book -> bookLifecycle.markReadProgressCompleted(book.id, principal.user) }
|
||||
.forEach { book ->
|
||||
if (book.readProgress?.completed != true)
|
||||
bookLifecycle.markReadProgressCompleted(book.id, principal.user)
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("{seriesId}/file", produces = [MediaType.APPLICATION_OCTET_STREAM_VALUE])
|
||||
|
|
|
|||
Loading…
Reference in a new issue