Move cover path func to LibraryItem model

This commit is contained in:
advplyr 2024-11-02 12:56:40 -05:00
parent c25acb41fa
commit 7a1623e6a1
5 changed files with 30 additions and 25 deletions

View file

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