fix(search): use correct param to filter movies by year (#2727)

pull/2730/head
Danshil Kokil Mungur 3 years ago committed by GitHub
parent e4039d09c0
commit 1054b4e2d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -129,7 +129,13 @@ class TheMovieDb extends ExternalAPI {
}: SingleSearchOptions): Promise<TmdbSearchMovieResponse> => { }: SingleSearchOptions): Promise<TmdbSearchMovieResponse> => {
try { try {
const data = await this.get<TmdbSearchMovieResponse>('/search/movie', { const data = await this.get<TmdbSearchMovieResponse>('/search/movie', {
params: { query, page, include_adult: includeAdult, language, year }, params: {
query,
page,
include_adult: includeAdult,
language,
primary_release_year: year,
},
}); });
return data; return data;

Loading…
Cancel
Save