mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-01 04:54:54 +02:00
Move cover path func to LibraryItem model
This commit is contained in:
parent
c25acb41fa
commit
7a1623e6a1
5 changed files with 30 additions and 25 deletions
|
@ -350,7 +350,7 @@ class LibraryItemController {
|
|||
}
|
||||
|
||||
if (raw) {
|
||||
const coverPath = await Database.getLibraryItemCoverPath(libraryItemId)
|
||||
const coverPath = await Database.libraryItemModel.getCoverPath(libraryItemId)
|
||||
if (!coverPath || !(await fs.pathExists(coverPath))) {
|
||||
return res.sendStatus(404)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue