From 7b8c17c79304156568a873f888010f0f2630264b Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 12 Jan 2024 17:34:33 +0200 Subject: [PATCH] Fixed: Filter history by multiple event types in PG Fixes #4436 --- src/Lidarr.Api.V1/History/HistoryController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Lidarr.Api.V1/History/HistoryController.cs b/src/Lidarr.Api.V1/History/HistoryController.cs index 3cf30b57e..e53827d75 100644 --- a/src/Lidarr.Api.V1/History/HistoryController.cs +++ b/src/Lidarr.Api.V1/History/HistoryController.cs @@ -75,8 +75,7 @@ namespace Lidarr.Api.V1.History if (eventTypes != null && eventTypes.Any()) { - var filterValues = eventTypes.Cast().ToArray(); - pagingSpec.FilterExpressions.Add(v => filterValues.Contains(v.EventType)); + pagingSpec.FilterExpressions.Add(v => eventTypes.Contains((int)v.EventType)); } if (albumId.HasValue)