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

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