mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat(search): filter search results by year (#2460)
* feat(search): filter search results by year * fix: typo in endpoint, blame it on new brand of coffee * feat(search): suggested changes
This commit is contained in:

committed by
GitHub

parent
30644f65ea
commit
72c825d2a5
@@ -18,10 +18,11 @@ searchRoutes.get('/', async (req, res, next) => {
|
||||
const [id] = queryString
|
||||
.toLowerCase()
|
||||
.match(searchProvider.pattern) as RegExpMatchArray;
|
||||
results = await searchProvider.search(
|
||||
results = await searchProvider.search({
|
||||
id,
|
||||
req.locale ?? (req.query.language as string)
|
||||
);
|
||||
language: req.locale ?? (req.query.language as string),
|
||||
query: queryString,
|
||||
});
|
||||
} else {
|
||||
const tmdb = new TheMovieDb();
|
||||
|
||||
|
Reference in New Issue
Block a user