mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 10:51:37 +00:00
Compare commits
No commits in common. "d8e272e09194514c0b2f2b2be670023a730d6a8e" and "8758c62ae2ef66e30e51b2b7b81b38bd9d1e421c" have entirely different histories.
d8e272e091
...
8758c62ae2
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ class SearchController {
|
||||||
try {
|
try {
|
||||||
const query = req.query
|
const query = req.query
|
||||||
const asin = getQueryParamAsString(query, 'asin', '', true)
|
const asin = getQueryParamAsString(query, 'asin', '', true)
|
||||||
const region = getQueryParamAsString(query, 'region', 'us').toLowerCase()
|
const region = getQueryParamAsString(req.query.region, 'us').toLowerCase()
|
||||||
|
|
||||||
if (!isValidASIN(asin.toUpperCase())) throw new ValidationError('asin', 'is invalid')
|
if (!isValidASIN(asin.toUpperCase())) throw new ValidationError('asin', 'is invalid')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue