fix(api): correctly return firstAirDate for series in search endpoints

fixes #462
This commit is contained in:
sct
2020-12-23 01:13:29 +09:00
parent 22002ab4c7
commit 32b4c99950
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ export const mapTvResult = (
media?: Media
): TvResult => ({
id: tvResult.id,
firstAirDate: tvResult.first_air_Date,
firstAirDate: tvResult.first_air_date,
genreIds: tvResult.genre_ids,
// Some results from tmdb dont return the mediaType so we force it here!
mediaType: tvResult.media_type || 'tv',