Use last history item in FailedDownloadService

This commit is contained in:
Bogdan 2024-01-09 01:24:34 +02:00
commit a728f44a1e

View file

@ -116,7 +116,7 @@ namespace NzbDrone.Core.Download
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
{