diff options
| author | JPVenson <github@jpb.email> | 2024-11-11 00:27:30 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2024-11-11 00:27:30 +0000 |
| commit | 2d4f7f725fb3d93dfa21f0ce4c48d292575d6fb1 (patch) | |
| tree | eb3761115192b510444bb94238617d30b99a0fee /Jellyfin.Server.Implementations/Item/BaseItemRepository.cs | |
| parent | 911139e2d57d22c4ddc0fb0a50997d6d235c3a3c (diff) | |
Fixed TopParent not beeing migrated
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/BaseItemRepository.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/BaseItemRepository.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs index aca5c071a..d862ecf6c 100644 --- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs +++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs @@ -227,8 +227,8 @@ public sealed class BaseItemRepository( .Include(e => e.Provider) .Include(e => e.Images) .Include(e => e.LockedFields); - dbQuery = TranslateQuery(dbQuery, context, filter) - .DistinctBy(e => e.Id); + dbQuery = TranslateQuery(dbQuery, context, filter); + // .DistinctBy(e => e.Id); if (filter.EnableTotalRecordCount) { result.TotalRecordCount = dbQuery.Count(); @@ -1040,7 +1040,7 @@ public sealed class BaseItemRepository( } else { - baseQuery = baseQuery.Where(e => queryTopParentIds.Any(w => w == e.TopParentId!.Value)); + baseQuery = baseQuery.Where(e => queryTopParentIds.Contains(e.TopParentId!.Value)); } } |
