Sort by Average Rating and Big Want to Read fix (#2672)
This commit is contained in:
parent
03e7d38482
commit
1fd72ada36
42 changed files with 3552 additions and 105 deletions
|
@ -288,8 +288,8 @@ public class CleanupService : ICleanupService
|
|||
var seriesIds = series.Select(s => s.Id).ToList();
|
||||
if (seriesIds.Count == 0) continue;
|
||||
|
||||
user.WantToRead ??= new List<Series>();
|
||||
user.WantToRead = user.WantToRead.Where(s => !seriesIds.Contains(s.Id)).ToList();
|
||||
user.WantToRead ??= new List<AppUserWantToRead>();
|
||||
user.WantToRead = user.WantToRead.Where(s => !seriesIds.Contains(s.SeriesId)).ToList();
|
||||
_unitOfWork.UserRepository.Update(user);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue