mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
parent
80fe567e51
commit
eb5a95cfa6
2 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ namespace Lidarr.Http.REST
|
||||||
// See src/Lidarr.Api.V1/Queue/QueueModule.cs
|
// See src/Lidarr.Api.V1/Queue/QueueModule.cs
|
||||||
private static readonly HashSet<string> VALID_SORT_KEYS = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
|
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",
|
"timeleft",
|
||||||
"estimatedCompletionTime",
|
"estimatedCompletionTime",
|
||||||
"protocol",
|
"protocol",
|
||||||
|
|
|
@ -17,6 +17,7 @@ namespace NzbDrone.Core.Test.Datastore
|
||||||
TableMapping.Mapper.IsValidSortKey(sortKey).Should().BeFalse();
|
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("id")]
|
[TestCase("id")]
|
||||||
[TestCase("commands.id")]
|
[TestCase("commands.id")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue