mirror of https://github.com/Radarr/Radarr
Get series from DB before publishing add series, so we can use LazyLoaded values
This commit is contained in:
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…
Reference in New Issue