Fixed: Cutoff unmet showing Unmonitored books

pull/3208/head
Bogdan 10 months ago
parent e032be48e0
commit 9d2efe0944

@ -42,11 +42,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(_bookCutoffService.BooksWhereCutoffUnmet, v => MapToResource(v, includeAuthor));

Loading…
Cancel
Save