Apply ParentId.Value suggestion

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
Matt Teahan
2026-06-13 21:04:33 +01:00
committed by GitHub
parent 23f8ec93ab
commit 5df25cf688

View File

@@ -586,7 +586,7 @@ public sealed partial class BaseItemRepository
if (filter.AlbumIds.Length > 0)
{
baseQuery = baseQuery.Where(e => filter.AlbumIds.Contains((Guid)e.ParentId!));
baseQuery = baseQuery.Where(e => e.ParentId.HasValue && filter.AlbumIds.Contains(e.ParentId.Value));
}
if (filter.ExcludeArtistIds.Length > 0)