mirror of
https://github.com/Readarr/Readarr
synced 2026-02-27 17:13:51 +01:00
Quick fix for Queue sort by Author SortName
Signed-off-by: bakerboy448 <55419169+bakerboy448@users.noreply.github.com>
This commit is contained in:
parent
843e46f890
commit
42262877b0
2 changed files with 2 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ public void should_return_false_for_invalid_sort_key(string sortKey)
|
|||
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 @@ public abstract class RestModule<TResource> : NancyModule
|
|||
// 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…
Reference in a new issue