Fixed the error in the newsletter

pull/3241/head
tidusjar 5 years ago
parent 35199a8b5e
commit d13a1865ea

@ -715,7 +715,7 @@ namespace Ombi.Schedule.Jobs.Ombi
{ {
SeasonNumber = key, SeasonNumber = key,
Episodes = g.ToList(), Episodes = g.ToList(),
EpisodeAirDate = tvInfo?.seasons?.Where(x => x.season_number == key)?.Select(x => x.air_date) ?? new List<string>() EpisodeAirDate = tvInfo?.seasons?.Where(x => x.season_number == key)?.Select(x => x.air_date).FirstOrDefault()
} }
); );
@ -840,7 +840,7 @@ namespace Ombi.Schedule.Jobs.Ombi
{ {
SeasonNumber = key, SeasonNumber = key,
Episodes = g.ToList(), Episodes = g.ToList(),
EpisodeAirDate = tvInfo?.seasons?.Where(x => x.season_number == key)?.Select(x => x.air_date) ?? new List<string>() EpisodeAirDate = tvInfo?.seasons?.Where(x => x.season_number == key)?.Select(x => x.air_date).FirstOrDefault()
} }
); );

Loading…
Cancel
Save