Fixed an issue from perf tuning where I forgot to send Pages to frontend, breaking reader. (#569)
This commit is contained in:
parent
f3e006efa2
commit
0f8709dc56
2 changed files with 11 additions and 4 deletions
|
@ -46,7 +46,8 @@ namespace API.Data.Repositories
|
|||
VolumeNumber = volume.Number,
|
||||
VolumeId = volume.Id,
|
||||
chapter.IsSpecial,
|
||||
volume.SeriesId
|
||||
volume.SeriesId,
|
||||
chapter.Pages
|
||||
})
|
||||
.Join(_context.Series, data => data.SeriesId, series => series.Id, (data, series) => new
|
||||
{
|
||||
|
@ -55,6 +56,7 @@ namespace API.Data.Repositories
|
|||
data.VolumeId,
|
||||
data.IsSpecial,
|
||||
data.SeriesId,
|
||||
data.Pages,
|
||||
SeriesFormat = series.Format,
|
||||
SeriesName = series.Name,
|
||||
series.LibraryId
|
||||
|
@ -68,7 +70,8 @@ namespace API.Data.Repositories
|
|||
SeriesId =data.SeriesId,
|
||||
SeriesFormat = data.SeriesFormat,
|
||||
SeriesName = data.SeriesName,
|
||||
LibraryId = data.LibraryId
|
||||
LibraryId = data.LibraryId,
|
||||
Pages = data.Pages
|
||||
})
|
||||
.AsNoTracking()
|
||||
.SingleAsync();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue