mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-13 08:37:07 +00:00
Apply review suggestion
This commit is contained in:
parent
070e2b2d0c
commit
0183127d2a
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ public sealed partial class BaseItemRepository
|
|||
var hasRandomSort = filter.OrderBy.Any(e => e.OrderBy == ItemSortBy.Random);
|
||||
if (hasRandomSort)
|
||||
{
|
||||
var orderedIds = dbQuery.Select(e => e.Id).ToList();
|
||||
var orderedIds = dbQuery.AsNoTracking().Select(e => e.Id).ToList();
|
||||
if (orderedIds.Count == 0)
|
||||
{
|
||||
return Array.Empty<BaseItemDto>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue