Fixed: Set correct titleslug for a book

This commit is contained in:
ta264 2021-07-26 22:00:16 +01:00
parent c1a846dd2b
commit 2a05112d7d

View file

@ -604,7 +604,7 @@ private static Book MapBook(BookResource resource)
{
ForeignBookId = resource.Work.Id.ToString(),
Title = (resource.Work.OriginalTitle ?? resource.TitleWithoutSeries).CleanSpaces(),
TitleSlug = resource.Id.ToString(),
TitleSlug = resource.Work.Id.ToString(),
ReleaseDate = resource.Work.OriginalPublicationDate ?? resource.PublicationDate,
Ratings = new Ratings { Votes = resource.Work.RatingsCount, Value = resource.Work.AverageRating },
AnyEditionOk = true