Update author and series to include libraryId

This commit is contained in:
advplyr 2023-07-08 10:07:57 -05:00
parent 0ac63b2678
commit 0a179e4eed
3 changed files with 7 additions and 3 deletions

View file

@ -244,7 +244,7 @@ class AuthorController {
}
middleware(req, res, next) {
var author = Database.authors.find(au => au.id === req.params.id)
const author = Database.authors.find(au => au.id === req.params.id)
if (!author) return res.sendStatus(404)
if (req.method == 'DELETE' && !req.user.canDelete) {