mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-03 01:35:08 +02:00
Small fixes
This commit is contained in:
parent
08a41e37b4
commit
5ea423072b
4 changed files with 5 additions and 11 deletions
|
@ -8,13 +8,7 @@ class CustomProviderAdapter {
|
|||
|
||||
async search(title, author, providerSlug) {
|
||||
const providerId = providerSlug.split("custom-")[1]
|
||||
|
||||
console.log(providerId)
|
||||
const provider = await Database.customMetadataProviderModel.findOne({
|
||||
where: {
|
||||
id: providerId,
|
||||
}
|
||||
});
|
||||
const provider = await Database.customMetadataProviderModel.findByPk(providerId);
|
||||
|
||||
if (!provider) {
|
||||
throw new Error("Custom provider not found for the given id");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue