diff --git a/server/finders/BookFinder.js b/server/finders/BookFinder.js index fb00219f..8fe3f647 100644 --- a/server/finders/BookFinder.js +++ b/server/finders/BookFinder.js @@ -214,7 +214,7 @@ class BookFinder { return this.search(provider, this.cleanTitleForCompares(title), this.cleanAuthorForCompares(author), isbn, asin, options) } - if (provider in ["google", "audible", "itunes"]) return books + if (["google", "audible", "itunes"].includes(provider)) return books return books.sort((a, b) => { return a.totalDistance - b.totalDistance