mirror of
https://github.com/Readarr/Readarr
synced 2026-02-12 01:33:20 +01:00
Fixed: Null reference setting download history for unmapped downloads
This commit is contained in:
parent
1491788081
commit
b1da9a1934
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ public void Handle(BookImportIncompleteEvent message)
|
|||
var history = new DownloadHistory
|
||||
{
|
||||
EventType = DownloadHistoryEventType.DownloadImportIncomplete,
|
||||
AuthorId = message.TrackedDownload.RemoteBook?.Author.Id ?? 0,
|
||||
AuthorId = message.TrackedDownload.RemoteBook?.Author?.Id ?? 0,
|
||||
DownloadId = message.TrackedDownload.DownloadItem.DownloadId,
|
||||
SourceTitle = message.TrackedDownload.DownloadItem.OutputPath.ToString(),
|
||||
Date = DateTime.UtcNow,
|
||||
|
|
|
|||
Loading…
Reference in a new issue