mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-26 02:39:05 +02:00
Updates for new book scanner
This commit is contained in:
parent
4ad1cd2968
commit
2df95c1712
12 changed files with 508 additions and 192 deletions
|
@ -234,8 +234,8 @@ class AuthorController {
|
|||
return this.cacheManager.handleAuthorCache(res, author, options)
|
||||
}
|
||||
|
||||
middleware(req, res, next) {
|
||||
const author = Database.authors.find(au => au.id === req.params.id)
|
||||
async middleware(req, res, next) {
|
||||
const author = await Database.authorModel.getOldById(req.params.id)
|
||||
if (!author) return res.sendStatus(404)
|
||||
|
||||
if (req.method == 'DELETE' && !req.user.canDelete) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue