mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
Remove duplicated condition in history controller
This commit is contained in:
parent
910c403d84
commit
3a99c2781b
@ -88,11 +88,6 @@ public PagingResource<HistoryResource> GetHistory([FromQuery] PagingRequestResou
|
|||||||
pagingSpec.FilterExpressions.Add(h => seriesIds.Contains(h.SeriesId));
|
pagingSpec.FilterExpressions.Add(h => seriesIds.Contains(h.SeriesId));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (seriesIds != null && seriesIds.Any())
|
|
||||||
{
|
|
||||||
pagingSpec.FilterExpressions.Add(h => seriesIds.Contains(h.SeriesId));
|
|
||||||
}
|
|
||||||
|
|
||||||
return pagingSpec.ApplyToPage(h => _historyService.Paged(pagingSpec, languages, quality), h => MapToResource(h, includeSeries, includeEpisode));
|
return pagingSpec.ApplyToPage(h => _historyService.Paged(pagingSpec, languages, quality), h => MapToResource(h, includeSeries, includeEpisode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user