Quick fix for Queue sort by Artist SortName

Fixes #1817
pull/1819/head
Qstick 4 years ago
parent 80fe567e51
commit eb5a95cfa6

@ -20,6 +20,7 @@ namespace Lidarr.Http.REST
// 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 @@ namespace NzbDrone.Core.Test.Datastore
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…
Cancel
Save