mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02: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,
|
principal.user.id,
|
||||||
UnpagedSorted(Sort.by(Sort.Order.asc("metadata.numberSort"))),
|
UnpagedSorted(Sort.by(Sort.Order.asc("metadata.numberSort"))),
|
||||||
).filterIndexed { index, _ -> index < readProgress.lastBookRead }
|
).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])
|
@GetMapping("{seriesId}/file", produces = [MediaType.APPLICATION_OCTET_STREAM_VALUE])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue