Skip to content

Commit 7b8c17c

Browse files
committedJan 12, 2024
Fixed: Filter history by multiple event types in PG
Fixes #4436
1 parent a9c19a8 commit 7b8c17c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/Lidarr.Api.V1/History/HistoryController.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ public PagingResource<HistoryResource> GetHistory([FromQuery] PagingRequestResou
7575

7676
if (eventTypes != null && eventTypes.Any())
7777
{
78-
var filterValues = eventTypes.Cast<EntityHistoryEventType>().ToArray();
79-
pagingSpec.FilterExpressions.Add(v => filterValues.Contains(v.EventType));
78+
pagingSpec.FilterExpressions.Add(v => eventTypes.Contains((int)v.EventType));
8079
}
8180

8281
if (albumId.HasValue)

0 commit comments

Comments
 (0)
Please sign in to comment.