mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 22:19:40 +00:00
Merge branch 'advplyr:master' into feat/metadata-id-matching
This commit is contained in:
commit
cf18cd9fbf
45 changed files with 843 additions and 118 deletions
|
|
@ -782,7 +782,14 @@ class User extends Model {
|
|||
error: 'Library item not found',
|
||||
statusCode: 404
|
||||
}
|
||||
} else if (libraryItem.mediaType !== 'book') {
|
||||
Logger.error(`[User] createUpdateMediaProgress: library item ${progressPayload.libraryItemId} is not a book`)
|
||||
return {
|
||||
error: 'Library item is not a book',
|
||||
statusCode: 400
|
||||
}
|
||||
}
|
||||
|
||||
mediaItemId = libraryItem.media.id
|
||||
mediaProgress = libraryItem.media.mediaProgresses?.[0]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue