mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix updating media progress object id
This commit is contained in:
		
							parent
							
								
									3a7cafbb95
								
							
						
					
					
						commit
						baf738f5ba
					
				| @ -121,7 +121,7 @@ export default { | ||||
|     selectedIsFinished() { | ||||
|       // Find an item that is not finished, if none then all items finished | ||||
|       return !this.selectedLibraryItems.find((libraryItemId) => { | ||||
|         var itemProgress = this.userMediaProgress.find((lip) => lip.id === libraryItemId) | ||||
|         var itemProgress = this.userMediaProgress.find((lip) => lip.libraryItemId === libraryItemId) | ||||
|         return !itemProgress || !itemProgress.isFinished | ||||
|       }) | ||||
|     }, | ||||
|  | ||||
| @ -26,7 +26,7 @@ export const getters = { | ||||
|     if (!state.user.mediaProgress) return null | ||||
|     return state.user.mediaProgress.find(li => { | ||||
|       if (episodeId && li.episodeId !== episodeId) return false | ||||
|       return li.id == libraryItemId | ||||
|       return li.libraryItemId == libraryItemId | ||||
|     }) | ||||
|   }, | ||||
|   getUserBookmarksForItem: (state) => (libraryItemId) => { | ||||
|  | ||||
| @ -23,8 +23,6 @@ class MeController { | ||||
|       return res.sendStatus(200) | ||||
|     } | ||||
|     await this.db.updateEntity('user', req.user) | ||||
|     // this.clientEmitter(req.user.id, 'user_item_progress_updated', { id: libraryItem.id, data: null })
 | ||||
| 
 | ||||
|     this.clientEmitter(req.user.id, 'user_updated', req.user.toJSONForBrowser()) | ||||
|     res.sendStatus(200) | ||||
|   } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user