Compare commits

..

No commits in common. "d8e272e09194514c0b2f2b2be670023a730d6a8e" and "8758c62ae2ef66e30e51b2b7b81b38bd9d1e421c" have entirely different histories.

View file

@ -187,7 +187,7 @@ class SearchController {
try {
const query = req.query
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')