mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-24 09:49:24 +02:00
Fix:Crash when updating sequence on series #1919
This commit is contained in:
parent
b715ef3bfc
commit
d0cd512be8
2 changed files with 3 additions and 2 deletions
|
@ -100,6 +100,7 @@ class LibraryItemController {
|
|||
async updateMedia(req, res) {
|
||||
const libraryItem = req.libraryItem
|
||||
const mediaPayload = req.body
|
||||
|
||||
// Item has cover and update is removing cover so purge it from cache
|
||||
if (libraryItem.media.coverPath && (mediaPayload.coverPath === '' || mediaPayload.coverPath === null)) {
|
||||
await this.cacheManager.purgeCoverCache(libraryItem.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue