Fixed DeadPeople query

This commit is contained in:
JPVenson 2024-11-13 19:09:39 +00:00
parent 7b81a39ee1
commit 2060d0ca2c

View File

@ -956,7 +956,7 @@ public sealed class BaseItemRepository(
if (filter.IsDeadPerson.HasValue && filter.IsDeadPerson.Value) if (filter.IsDeadPerson.HasValue && filter.IsDeadPerson.Value)
{ {
baseQuery = baseQuery baseQuery = baseQuery
.Where(e => !e.Peoples!.Any(f => f.People.Name == e.Name)); .Where(e => !context.Peoples.Any(f => f.Name == e.Name));
} }
if (filter.Years.Length == 1) if (filter.Years.Length == 1)