Remove updateMedia endpoint cover cache purge

This commit is contained in:
advplyr committed 2024-01-31 17:23:16 -06:00
1 parent dbad8bdb96
commit ebe511404a
1 file changed
-5
@@ -124,11 +124,6 @@ class LibraryItemController {
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 CacheManager.purgeCoverCache(libraryItem.id)
}
// Book specific
if (libraryItem.isBook) {
await this.createAuthorsAndSeriesForItemUpdate(mediaPayload, libraryItem.libraryId)