Fixed: Error fetching metadata when redirected to work endpoint

This commit is contained in:
ta264 2022-01-16 22:09:21 +00:00
parent b4b14a5359
commit 90d671d68d

View file

@ -337,7 +337,7 @@ public List<Book> SearchByGoodreadsBookId(int id, bool getAllEditions)
book = author.Books.Value.Where(b => b.Editions.Value.Any(e => e.ForeignEditionId == id.ToString())).FirstOrDefault();
authors = new List<AuthorMetadata> { author.Metadata.Value };
}
else if (type == "book")
else if (type == "work")
{
var tuple = PollBook(newId);