mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-05 22:46:27 +01:00
Updates for new book scanner
This commit is contained in:
1 parent
4ad1cd2968
commit
2df95c1712
12 files changed
+508
-192
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user