update queries
This commit is contained in:
parent
728a1ba610
commit
d9f062f5aa
|
@ -1329,7 +1329,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
{
|
||||
var parents = parentIds.Select(i => GetItemById(new Guid(i))).ToList();
|
||||
|
||||
query.AncestorIds = parents.SelectMany(i => i.GetIdsForAncestorQuery()).Select(i => i.ToString("N")).ToArray();
|
||||
query.TopParentIds = parents.SelectMany(GetTopParentsForQuery).Select(i => i.Id.ToString("N")).ToArray();
|
||||
|
||||
return GetItems(query);
|
||||
}
|
||||
|
@ -1345,7 +1345,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
|
||||
}, CancellationToken.None).Result.ToList();
|
||||
|
||||
//query.TopParentIds = userViews.SelectMany(GetTopParentsForQuery).Select(i => i.Id.ToString("N")).ToArray();
|
||||
query.TopParentIds = userViews.SelectMany(GetTopParentsForQuery).Select(i => i.Id.ToString("N")).ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user