aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/SuggestionsController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-04-24 15:57:51 +0200
committerGitHub <noreply@github.com>2021-04-24 15:57:51 +0200
commit224c48821e8a1528d35bef0222c729ba2604521d (patch)
treeb7837bffa8c53ad7204a3af0b0c7290d0064fdeb /Jellyfin.Api/Controllers/SuggestionsController.cs
parent1a54338e380f2206245a3867843146bd2ae72295 (diff)
parentf46195899e176912676511f277e31fea41d8ab27 (diff)
Merge pull request #5887 from Bond-009/perf
Improve perf of db save and query
Diffstat (limited to 'Jellyfin.Api/Controllers/SuggestionsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/SuggestionsController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/SuggestionsController.cs b/Jellyfin.Api/Controllers/SuggestionsController.cs
index a55f13e66..a811a29c3 100644
--- a/Jellyfin.Api/Controllers/SuggestionsController.cs
+++ b/Jellyfin.Api/Controllers/SuggestionsController.cs
@@ -69,7 +69,7 @@ namespace Jellyfin.Api.Controllers
var dtoOptions = new DtoOptions().AddClientFields(Request);
var result = _libraryManager.GetItemsResult(new InternalItemsQuery(user)
{
- OrderBy = new[] { ItemSortBy.Random }.Select(i => new ValueTuple<string, SortOrder>(i, SortOrder.Descending)).ToArray(),
+ OrderBy = new[] { (ItemSortBy.Random, SortOrder.Descending) },
MediaTypes = mediaType,
IncludeItemTypes = type,
IsVirtualItem = false,