mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-22 17:03:50 +02:00
Fix LibraryItemController unit test
This commit is contained in:
parent
4787e7fdb5
commit
eb853d9f09
2 changed files with 9 additions and 5 deletions
|
@ -1144,7 +1144,7 @@ class LibraryItemController {
|
|||
*/
|
||||
async middleware(req, res, next) {
|
||||
req.libraryItem = await Database.libraryItemModel.getExpandedById(req.params.id)
|
||||
req.oldLibraryItem = await Database.libraryItemModel.getOldLibraryItem(req.libraryItem)
|
||||
req.oldLibraryItem = Database.libraryItemModel.getOldLibraryItem(req.libraryItem)
|
||||
if (!req.libraryItem?.media) return res.sendStatus(404)
|
||||
|
||||
// Check user can access this library item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue