Use last history item in FailedDownloadService

This commit is contained in:
Bogdan 2024-01-09 01:24:34 +02:00
parent 8effba383d
commit 622b02c478

View file

@ -116,7 +116,7 @@ public void ProcessFailed(TrackedDownload trackedDownload)
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
{