Get series from DB before publishing add series, so we can use LazyLoaded values

This commit is contained in:
markus101 2014-02-04 23:08:33 -08:00
parent 16dd5b621e
commit 2b5c512d64
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ namespace NzbDrone.Core.Tv
newSeries.CleanTitle = Parser.Parser.CleanSeriesTitle(newSeries.Title);
_seriesRepository.Insert(newSeries);
_eventAggregator.PublishEvent(new SeriesAddedEvent(newSeries));
_eventAggregator.PublishEvent(new SeriesAddedEvent(GetSeries(newSeries.Id)));
return newSeries;
}