Compare commits

...

2 commits

Author SHA1 Message Date
advplyr
d8e272e091
Merge pull request #4870 from Vito0912/patch-1
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Build and Push Docker Image / build (push) Has been cancelled
Integration Test / build and test (push) Has been cancelled
Run Unit Tests / Run Unit Tests (push) Has been cancelled
Fix region parameter extraction in findChapters
2025-11-27 16:20:34 -06:00
Finn Dittmar
3e9ca51088
Fix region parameter extraction in findChapters 2025-11-27 21:40:29 +01:00

View file

@ -187,7 +187,7 @@ class SearchController {
try {
const query = req.query
const asin = getQueryParamAsString(query, 'asin', '', true)
const region = getQueryParamAsString(req.query.region, 'us').toLowerCase()
const region = getQueryParamAsString(query, 'region', 'us').toLowerCase()
if (!isValidASIN(asin.toUpperCase())) throw new ValidationError('asin', 'is invalid')