mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-17 00:01:10 +02:00
Add library match all back updated to support v2 models
This commit is contained in:
parent
ff294867f8
commit
35f3b5863f
6 changed files with 60 additions and 45 deletions
|
@ -546,12 +546,12 @@ class LibraryController {
|
|||
res.json(Object.values(authors))
|
||||
}
|
||||
|
||||
async matchBooks(req, res) {
|
||||
async matchAll(req, res) {
|
||||
if (!req.user.isRoot) {
|
||||
Logger.error(`[LibraryController] Non-root user attempted to match library books`, req.user)
|
||||
Logger.error(`[LibraryController] Non-root user attempted to match library items`, req.user)
|
||||
return res.sendStatus(403)
|
||||
}
|
||||
this.scanner.matchLibraryBooks(req.library)
|
||||
this.scanner.matchLibraryItems(req.library)
|
||||
res.sendStatus(200)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue