Fixed: Wanted Missing showing Unmonitored books

pull/3208/head
Bogdan 10 months ago
parent cd66de1992
commit e032be48e0

@ -38,11 +38,11 @@ namespace Readarr.Api.V1.Wanted
if (monitored)
{
pagingSpec.FilterExpressions.Add(v => v.Monitored == false || v.Author.Value.Monitored == false);
pagingSpec.FilterExpressions.Add(v => v.Monitored == true && v.Author.Value.Monitored == true);
}
else
{
pagingSpec.FilterExpressions.Add(v => v.Monitored == true && v.Author.Value.Monitored == true);
pagingSpec.FilterExpressions.Add(v => v.Monitored == false || v.Author.Value.Monitored == false);
}
return pagingSpec.ApplyToPage(_bookService.BooksWithoutFiles, v => MapToResource(v, includeAuthor));

Loading…
Cancel
Save