Skip to content

Commit

Permalink
fix(search): use correct param to filter movies by year (#2727)
Browse files Browse the repository at this point in the history
  • Loading branch information
danshilm committed Apr 30, 2022
1 parent e4039d0 commit 1054b4e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/api/themoviedb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,13 @@ class TheMovieDb extends ExternalAPI {
}: SingleSearchOptions): Promise<TmdbSearchMovieResponse> => {
try {
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;
Expand Down

0 comments on commit 1054b4e

Please sign in to comment.