refactor: update CountHistoryQueryExtensions to use IEnumerable<EnvelopeStatus> and improve status handling

This commit is contained in:
2025-11-14 13:47:34 +01:00
parent b9c86ce3c6
commit 99e3e4c24d
3 changed files with 6 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ public class ReadHistoryQueryHandler : IRequestHandler<ReadHistoryQuery, IEnumer
if (status.Max is not null)
query = query.Where(er => er.Envelope!.Status <= status.Max);
if (status.Include?.Length > 0)
if (status.Include?.Count() > 0)
query = query.Where(er => status.Include.Contains(er.Envelope!.Status));
if (status.Ignore is not null)