Quick fix for Queue sort by Author SortName

Signed-off-by: bakerboy448 <55419169+bakerboy448@users.noreply.github.com>
pull/773/head
Qstick 4 years ago
parent 843e46f890
commit 42262877b0

@ -17,6 +17,7 @@ namespace NzbDrone.Core.Test.Datastore
TableMapping.Mapper.IsValidSortKey(sortKey).Should().BeFalse();
}
//[TestCase("authors.sortName")] TODO: Figure out why Authors table properties don't get mapped
[TestCase("Id")]
[TestCase("id")]
[TestCase("commands.id")]

@ -20,6 +20,7 @@ namespace Readarr.Http.REST
// See src/Readarr.Api.V1/Queue/QueueModule.cs
private static readonly HashSet<string> VALID_SORT_KEYS = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
"authors.sortname", //Workaround authors table properties not being added on isValidSortKey call
"timeleft",
"estimatedCompletionTime",
"protocol",

Loading…
Cancel
Save