Skip to content

Commit

Permalink
Fixed: Default sort key for wanted/missing API endpoint
Browse files Browse the repository at this point in the history
Fixes #2725

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
  • Loading branch information
Qstick and markus101 committed Jun 5, 2022
1 parent a6f4c3c commit 397e2bf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Lidarr.Api.V1/Wanted/MissingController.cs
Expand Up @@ -28,13 +28,7 @@ public class MissingController : AlbumControllerWithSignalR
public PagingResource<AlbumResource> GetMissingAlbums(bool includeArtist = false)
{
var pagingResource = Request.ReadPagingResourceFromRequest<AlbumResource>();
var pagingSpec = new PagingSpec<Album>
{
Page = pagingResource.Page,
PageSize = pagingResource.PageSize,
SortKey = pagingResource.SortKey,
SortDirection = pagingResource.SortDirection
};
var pagingSpec = pagingResource.MapToPagingSpec<AlbumResource, Album>("releaseDate", SortDirection.Descending);

var monitoredFilter = pagingResource.Filters.FirstOrDefault(f => f.Key == "monitored");

Expand Down

0 comments on commit 397e2bf

Please sign in to comment.