mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-01 21:15:00 +02:00
Small fixes
This commit is contained in:
parent
08a41e37b4
commit
5ea423072b
4 changed files with 5 additions and 11 deletions
|
@ -53,7 +53,7 @@ class LibraryController {
|
|||
|
||||
// Validate that the custom provider exists if given any
|
||||
if (newLibraryPayload.provider && newLibraryPayload.provider.startsWith("custom-")) {
|
||||
await Database.doesCustomProviderExistBySlug(newLibraryPayload.provider)
|
||||
await Database.doesCustomProviderExistWithSlug(newLibraryPayload.provider)
|
||||
}
|
||||
|
||||
const library = new Library()
|
||||
|
@ -182,7 +182,7 @@ class LibraryController {
|
|||
|
||||
// Validate that the custom provider exists if given any
|
||||
if (req.body.provider && req.body.provider.startsWith("custom-")) {
|
||||
await Database.doesCustomProviderExistBySlug(req.body.provider)
|
||||
await Database.doesCustomProviderExistWithSlug(req.body.provider)
|
||||
}
|
||||
|
||||
const hasUpdates = library.update(req.body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue