mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
fix: series would be updated at each scan even if not modified
This commit is contained in:
parent
b908ac140b
commit
d05237f5ed
1 changed files with 3 additions and 1 deletions
|
|
@ -81,7 +81,9 @@ class SeriesLifecycle(
|
||||||
}
|
}
|
||||||
|
|
||||||
// update book count for series
|
// update book count for series
|
||||||
seriesRepository.update(series.copy(bookCount = books.size))
|
seriesRepository.findByIdOrNull(series.id)?.let {
|
||||||
|
seriesRepository.update(it.copy(bookCount = books.size))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun addBooks(series: Series, booksToAdd: Collection<Book>) {
|
fun addBooks(series: Series, booksToAdd: Collection<Book>) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue