Merge branch 'advplyr:master' into feat/metadata-id-matching

This commit is contained in:
Michael Marcucci 2026-02-21 17:56:44 -05:00 committed by GitHub
commit cf18cd9fbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 843 additions and 118 deletions

View file

@ -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]
}