Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/397e2bf418b10d6009ee35ae8a995d83277dec7b You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed: Default sort key for wanted/missing API endpoint

Fixes 

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
pull/2833/head
Qstick 3 years ago
parent a6f4c3cdb0
commit 397e2bf418

@ -28,13 +28,7 @@ namespace Lidarr.Api.V1.Wanted
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");

Loading…
Cancel
Save