Use last history item in FailedDownloadService

pull/4413/head
Bogdan 5 months ago
parent e405fc7cf9
commit 76955609a3

@ -116,7 +116,7 @@ namespace NzbDrone.Core.Download
private void PublishDownloadFailedEvent(List<EntityHistory> historyItems, string message, TrackedDownload trackedDownload = null, bool skipRedownload = false) private void PublishDownloadFailedEvent(List<EntityHistory> historyItems, string message, TrackedDownload trackedDownload = null, bool skipRedownload = false)
{ {
var historyItem = historyItems.First(); var historyItem = historyItems.Last();
var downloadFailedEvent = new DownloadFailedEvent var downloadFailedEvent = new DownloadFailedEvent
{ {

Loading…
Cancel
Save