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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)