aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-11-11 00:27:30 +0000
committerJPVenson <github@jpb.email>2024-11-11 00:27:30 +0000
commit2d4f7f725fb3d93dfa21f0ce4c48d292575d6fb1 (patch)
treeeb3761115192b510444bb94238617d30b99a0fee /Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
parent911139e2d57d22c4ddc0fb0a50997d6d235c3a3c (diff)
Fixed TopParent not beeing migrated
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/BaseItemRepository.cs')
-rw-r--r--Jellyfin.Server.Implementations/Item/BaseItemRepository.cs6
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));
}
}