Fix:Crash when searching for cover without an author #2174

This commit is contained in:
advplyr 2023-10-02 17:09:12 -05:00
parent 20a1d40d99
commit a3a8937ba3
3 changed files with 2 additions and 3 deletions

View file

@ -26,7 +26,7 @@ class SearchController {
let results = null
if (podcast) results = await PodcastFinder.findCovers(query.title)
else results = await BookFinder.findCovers(query.provider || 'google', query.title, query.author || null)
else results = await BookFinder.findCovers(query.provider || 'google', query.title, query.author || '')
res.json({
results
})