Fixed InProgress to properly respect order and show more recent activity first. Issue is with IEntityDate LastModified not updating in DataContext.
This commit is contained in:
parent
876466d05b
commit
1f5d1eca1d
2 changed files with 11 additions and 6 deletions
|
@ -315,13 +315,13 @@ namespace API.Data
|
|||
&& s.PagesRead > 0
|
||||
&& s.PagesRead < s.Series.Pages
|
||||
&& (libraryId <= 0 || s.Series.LibraryId == libraryId))
|
||||
.OrderByDescending(s => s.LastModified)
|
||||
.Take(limit)
|
||||
.Select(s => s.Series.Id);
|
||||
|
||||
|
||||
var series = await _context.Series
|
||||
.Where(s => seriesWithProgress.Contains(s.Id))
|
||||
.OrderByDescending(s => s.LastModified)
|
||||
.Take(limit)
|
||||
.ProjectTo<SeriesDto>(_mapper.ConfigurationProvider)
|
||||
.AsNoTracking()
|
||||
.ToListAsync();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue