mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-13 23:39:39 +00: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
|
|
@ -59,7 +59,7 @@ class CacheManager {
|
|||
}
|
||||
|
||||
// Cached cover does not exist, generate it
|
||||
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