From 1054b4e2d7262d841fa83cde624f1138ad7bd23a Mon Sep 17 00:00:00 2001 From: Danshil Kokil Mungur Date: Sat, 30 Apr 2022 18:31:02 +0400 Subject: [PATCH] fix(search): use correct param to filter movies by year (#2727) --- server/api/themoviedb/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/api/themoviedb/index.ts b/server/api/themoviedb/index.ts index cf5e280c2..b5060c030 100644 --- a/server/api/themoviedb/index.ts +++ b/server/api/themoviedb/index.ts @@ -129,7 +129,13 @@ class TheMovieDb extends ExternalAPI { }: SingleSearchOptions): Promise => { try { const data = await this.get('/search/movie', { - params: { query, page, include_adult: includeAdult, language, year }, + params: { + query, + page, + include_adult: includeAdult, + language, + primary_release_year: year, + }, }); return data;