mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Update libraryItem.updatedAt on media update
This commit is contained in:
		
							parent
							
								
									6cd874dffc
								
							
						
					
					
						commit
						0357dc90d4
					
				@ -249,6 +249,9 @@ class LibraryItemController {
 | 
			
		||||
 | 
			
		||||
    const hasUpdates = (await req.libraryItem.media.updateFromRequest(mediaPayload)) || mediaPayload.url
 | 
			
		||||
    if (hasUpdates) {
 | 
			
		||||
      req.libraryItem.changed('updatedAt', true)
 | 
			
		||||
      await req.libraryItem.save()
 | 
			
		||||
 | 
			
		||||
      if (isPodcastAutoDownloadUpdated) {
 | 
			
		||||
        this.cronManager.checkUpdatePodcastCron(req.libraryItem)
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user