mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Remove updateMedia endpoint cover cache purge
This commit is contained in:
		
							parent
							
								
									dbad8bdb96
								
							
						
					
					
						commit
						ebe511404a
					
				| @ -124,11 +124,6 @@ class LibraryItemController { | |||||||
|     const libraryItem = req.libraryItem |     const libraryItem = req.libraryItem | ||||||
|     const mediaPayload = req.body |     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
 |     // Book specific
 | ||||||
|     if (libraryItem.isBook) { |     if (libraryItem.isBook) { | ||||||
|       await this.createAuthorsAndSeriesForItemUpdate(mediaPayload, libraryItem.libraryId) |       await this.createAuthorsAndSeriesForItemUpdate(mediaPayload, libraryItem.libraryId) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user