Fixed: File change history appearing against wrong book

This commit is contained in:
ta264 2021-03-31 21:20:32 +01:00
parent 41f5f0f2d4
commit f0742e3750

View file

@ -294,7 +294,7 @@ public void Handle(BookFileDeletedEvent message)
Quality = message.BookFile.Quality,
SourceTitle = message.BookFile.Path,
AuthorId = message.BookFile.Author.Value.Id,
BookId = message.BookFile.EditionId
BookId = message.BookFile.Edition.Value.BookId
};
history.Data.Add("Reason", message.Reason.ToString());
@ -314,7 +314,7 @@ public void Handle(BookFileRenamedEvent message)
Quality = message.BookFile.Quality,
SourceTitle = message.OriginalPath,
AuthorId = message.BookFile.Author.Value.Id,
BookId = message.BookFile.EditionId
BookId = message.BookFile.Edition.Value.BookId
};
history.Data.Add("SourcePath", sourcePath);
@ -334,7 +334,7 @@ public void Handle(BookFileRetaggedEvent message)
Quality = message.BookFile.Quality,
SourceTitle = path,
AuthorId = message.BookFile.Author.Value.Id,
BookId = message.BookFile.EditionId
BookId = message.BookFile.Edition.Value.BookId
};
history.Data.Add("TagsScrubbed", message.Scrubbed.ToString());