mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(api): correctly return firstAirDate for series in search endpoints
fixes #462
This commit is contained in:
@@ -71,7 +71,7 @@ export interface TmdbTvResult extends TmdbMediaResult {
|
|||||||
name: string;
|
name: string;
|
||||||
original_name: string;
|
original_name: string;
|
||||||
origin_country: string[];
|
origin_country: string[];
|
||||||
first_air_Date: string;
|
first_air_date: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TmdbPersonResult {
|
export interface TmdbPersonResult {
|
||||||
|
@@ -78,7 +78,7 @@ export const mapTvResult = (
|
|||||||
media?: Media
|
media?: Media
|
||||||
): TvResult => ({
|
): TvResult => ({
|
||||||
id: tvResult.id,
|
id: tvResult.id,
|
||||||
firstAirDate: tvResult.first_air_Date,
|
firstAirDate: tvResult.first_air_date,
|
||||||
genreIds: tvResult.genre_ids,
|
genreIds: tvResult.genre_ids,
|
||||||
// Some results from tmdb dont return the mediaType so we force it here!
|
// Some results from tmdb dont return the mediaType so we force it here!
|
||||||
mediaType: tvResult.media_type || 'tv',
|
mediaType: tvResult.media_type || 'tv',
|
||||||
|
Reference in New Issue
Block a user