Fix Audible search when products are null

This commit is contained in:
Asher Jin committed 2026-08-04 14:10:32 +12:00
1 parent 1b46d68027
commit ac63b0c7fc
1 file changed
+1 -1
+1 -1
View File
@@ -159,7 +159,7 @@ class Audible {
timeout
})
.then((res) => {
if (!res?.data?.products) return null
if (!res?.data?.products) return []
return Promise.all(res.data.products.map((result) => this.asinSearch(result.asin, region, timeout)))
})
.catch((error) => {