Fixed Item query

pull/12798/head
JPVenson 3 months ago
parent 03e08412d7
commit 3eedbae506

@ -940,7 +940,7 @@ public sealed class BaseItemRepository(
var result = new QueryResult<(BaseItemDto, ItemCounts)>();
if (filter.EnableTotalRecordCount)
{
result.TotalRecordCount = query.DistinctBy(e => e.PresentationUniqueKey).Count();
result.TotalRecordCount = query.GroupBy(e => e.PresentationUniqueKey).Select(e => e.First()).Count();
}
var seriesTypeName = itemTypeLookup.BaseItemKindNames[BaseItemKind.Series];

Loading…
Cancel
Save