mirror of
https://github.com/Lidarr/Lidarr
synced 2026-01-17 13:02:44 +01:00
parent
80fe567e51
commit
eb5a95cfa6
2 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ public abstract class RestModule<TResource> : NancyModule
|
|||
// See src/Lidarr.Api.V1/Queue/QueueModule.cs
|
||||
private static readonly HashSet<string> VALID_SORT_KEYS = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
"artists.sortname", //Workaround artists table properties not being added on isValidSortKey call
|
||||
"timeleft",
|
||||
"estimatedCompletionTime",
|
||||
"protocol",
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ public void should_return_false_for_invalid_sort_key(string sortKey)
|
|||
TableMapping.Mapper.IsValidSortKey(sortKey).Should().BeFalse();
|
||||
}
|
||||
|
||||
//[TestCase("artists.sortName")] TODO: Figure out why Artists table properties don't get mapped
|
||||
[TestCase("Id")]
|
||||
[TestCase("id")]
|
||||
[TestCase("commands.id")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue