From 333d344c0b55e6744ba78bcd1f280f180e68ea5b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 4 Feb 2021 20:11:48 -0800 Subject: [PATCH] New: Add FileId to History data for import events (cherry picked from commit 952a7248c962908fc5da92762507421923a06e17) Closes #788 --- src/NzbDrone.Core/History/HistoryService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/History/HistoryService.cs b/src/NzbDrone.Core/History/HistoryService.cs index a96c1d2b3..a9aae87dd 100644 --- a/src/NzbDrone.Core/History/HistoryService.cs +++ b/src/NzbDrone.Core/History/HistoryService.cs @@ -230,8 +230,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.ImportedBook.Id.ToString()); history.Data.Add("DroppedPath", message.BookInfo.Path); history.Data.Add("ImportedPath", message.ImportedBook.Path); history.Data.Add("DownloadClient", message.DownloadClientInfo?.Type);