Skip to content

Commit

Permalink
Merge pull request #1060 from aksio-insurtech/fix/restapi_bugfix
Browse files Browse the repository at this point in the history
Make eventTypes optional, as it should be.
  • Loading branch information
Torgeir-Hansen committed Dec 29, 2023
2 parents 87d509e + f869e23 commit 9233844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Kernel/Read/EventSequences/EventSequence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public class EventSequence : ControllerBase
[FromQuery(Name = "eventTypes[]")] IEnumerable<string> eventTypes = null!)
{
var result = new List<AppendedEventWithJsonAsContent>();
var parsedEventTypes = eventTypes.Select(EventType.Parse).ToArray();
var parsedEventTypes = eventTypes?.Select(EventType.Parse).ToArray();

var correlationId = _executionContextManager.Current.CorrelationId;
_executionContextManager.Establish(tenantId, correlationId, microserviceId);
Expand Down

0 comments on commit 9233844

Please sign in to comment.