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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user