diff --git a/src/NzbDrone.Core/History/EntityHistoryService.cs b/src/NzbDrone.Core/History/EntityHistoryService.cs index 061b4b267..75c162510 100644 --- a/src/NzbDrone.Core/History/EntityHistoryService.cs +++ b/src/NzbDrone.Core/History/EntityHistoryService.cs @@ -236,8 +236,7 @@ public void Handle(TrackImportedEvent message) DownloadId = downloadId }; - // Won't have a value since we publish this event before saving to DB. - // history.Data.Add("FileId", message.ImportedEpisode.Id.ToString()); + history.Data.Add("FileId", message.ImportedTrack.Id.ToString()); history.Data.Add("DroppedPath", message.TrackInfo.Path); history.Data.Add("ImportedPath", message.ImportedTrack.Path); history.Data.Add("DownloadClient", message.DownloadClientInfo?.Name);