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

pull/6/head
markus101 11 years ago
parent 16dd5b621e
commit 2b5c512d64

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

Loading…
Cancel
Save