1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-19 21:46:50 -04:00

Simplify fallback to default for allowed sort keys

Co-authored-by: Mark McDowall <mark@mcdowall.ca>
This commit is contained in:
Bogdan
2024-09-21 01:35:47 +03:00
parent b89271fc01
commit dbc94dbe4e
8 changed files with 34 additions and 34 deletions
@@ -31,8 +31,6 @@ namespace Radarr.Api.V3.Blocklist
{
var pagingResource = new PagingResource<BlocklistResource>(paging);
var pagingSpec = pagingResource.MapToPagingSpec<BlocklistResource, NzbDrone.Core.Blocklisting.Blocklist>(
"date",
SortDirection.Descending,
new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
"movieMetadata.sortTitle",
@@ -41,7 +39,9 @@ namespace Radarr.Api.V3.Blocklist
"quality",
"date",
"indexer"
});
},
"date",
SortDirection.Descending);
if (movieIds?.Any() == true)
{